diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-04 18:01:49 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-04 18:01:49 +0000 |
| commit | 25b151dfdf66c7950df49640402283a916936706 (patch) | |
| tree | e80315216821f49dffcc8b2c34ea96d16b2c65e0 /llvm/lib | |
| parent | d23d752dc5708a037de314b95bf8285ebea3155f (diff) | |
| download | bcm5719-llvm-25b151dfdf66c7950df49640402283a916936706.tar.gz bcm5719-llvm-25b151dfdf66c7950df49640402283a916936706.zip | |
Fix a bug introduced by "internal linkage" work.
llvm-svn: 1415
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerAllocations.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp index 882485f8ff7..bb2cdb67fa4 100644 --- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp +++ b/llvm/lib/Transforms/Scalar/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; } |

