From: Chris Lattner Date: Fri, 7 Jul 2006 00:01:01 +0000 (+0000) Subject: Fix an embarassing bug reid noticed X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=408a39b3a0cfe370e465db521de8561874796da4;p=oota-llvm.git Fix an embarassing bug reid noticed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29031 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ModuleProvider.h b/include/llvm/ModuleProvider.h index b42a5036e5c..a5f001ee8cc 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;