summaryrefslogtreecommitdiff
path: root/include/llvm/ModuleProvider.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-07 00:01:01 +0000
committerChris Lattner <sabre@nondot.org>2006-07-07 00:01:01 +0000
commit408a39b3a0cfe370e465db521de8561874796da4 (patch)
treeae1b8d6b55e0e8240767a1f4e0e19d05e3ea64d0 /include/llvm/ModuleProvider.h
parent8eaafdedb2ec19ceeeb664e23f636059fdbf3954 (diff)
downloadllvm-408a39b3a0cfe370e465db521de8561874796da4.tar.gz
llvm-408a39b3a0cfe370e465db521de8561874796da4.tar.bz2
llvm-408a39b3a0cfe370e465db521de8561874796da4.tar.xz
Fix an embarassing bug reid noticed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29031 91177308-0d34-0410-b5e6-96231b3b80d8
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;