aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerAllocations.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-04 18:01:49 +0000
committerChris Lattner <sabre@nondot.org>2001-12-04 18:01:49 +0000
commited4feac757318b92cecd3d3d1a1c2800d4ef52b3 (patch)
tree3d7ee4b60e030fbf803bd4a58af8194140b32495 /lib/Transforms/Utils/LowerAllocations.cpp
parent3bf915f2a296472a6bead0502c88bf74e90ec19b (diff)
Fix a bug introduced by "internal linkage" work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r--lib/Transforms/Utils/LowerAllocations.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp
index 882485f8ff..bb2cdb67fa 100644
--- a/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/lib/Transforms/Utils/LowerAllocations.cpp
@@ -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;
}