Fix an embarassing bug reid noticed
authorChris Lattner <sabre@nondot.org>
Fri, 7 Jul 2006 00:01:01 +0000 (00:01 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Jul 2006 00:01:01 +0000 (00:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29031 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ModuleProvider.h

index b42a5036e5c4c79f388e4ef7ef0c6109113c065a..a5f001ee8cccc0cc261663f4bae4b1838f390467 100644 (file)
@@ -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;