From 408a39b3a0cfe370e465db521de8561874796da4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Jul 2006 00:01:01 +0000 Subject: [PATCH] Fix an embarassing bug reid noticed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29031 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ModuleProvider.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1