Fix a bug introduced by "internal linkage" work.
authorChris Lattner <sabre@nondot.org>
Tue, 4 Dec 2001 18:01:49 +0000 (18:01 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 4 Dec 2001 18:01:49 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1415 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LowerAllocations.cpp

index 882485f8ff747619471060aa3a0dca8ad185f2c3..bb2cdb67fa49f4b5ffeb23985bffce4cb2b32231 100644 (file)
@@ -32,7 +32,8 @@ bool LowerAllocations::doPassInitialization(Module *M) {
   if (Value *V = SymTab->lookup(PointerType::get(MallocType), "malloc")) {
     MallocMeth = cast<Method>(V);      // Yup, got it
   } else {                             // Nope, add one
-    M->getMethodList().push_back(MallocMeth = new Method(MallocType, "malloc"));
+    M->getMethodList().push_back(MallocMeth = new Method(MallocType, false, 
+                                                         "malloc"));
     Changed = true;
   }
 
@@ -45,7 +46,7 @@ bool LowerAllocations::doPassInitialization(Module *M) {
   if (Value *V = SymTab->lookup(PointerType::get(FreeType), "free")) {
     FreeMeth = cast<Method>(V);      // Yup, got it
   } else {                             // Nope, add one
-    M->getMethodList().push_back(FreeMeth = new Method(FreeType, "free"));
+    M->getMethodList().push_back(FreeMeth = new Method(FreeType, false,"free"));
     Changed = true;
   }