aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ModuleProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ModuleProvider.h')
-rw-r--r--include/llvm/ModuleProvider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ModuleProvider.h b/include/llvm/ModuleProvider.h
index b42a5036e5..a5f001ee8c 100644
--- a/include/llvm/ModuleProvider.h
+++ b/include/llvm/ModuleProvider.h
@@ -53,7 +53,7 @@ public:
///
virtual Module* releaseModule(std::string *ErrInfo = 0) {
// Since we're losing control of this Module, we must hand it back complete
- if (materializeModule(ErrInfo))
+ if (!materializeModule(ErrInfo))
return 0;
Module *tempM = TheModule;
TheModule = 0;