Skip to content
Snippets Groups Projects
Commit 25b151df authored by Chris Lattner's avatar Chris Lattner
Browse files

Fix a bug introduced by "internal linkage" work.

llvm-svn: 1415
parent d23d752d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment