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

Fix bug in previous checkin

llvm-svn: 3672
parent 55f3d94b
No related merge requests found
...@@ -123,6 +123,7 @@ bool RaiseAllocations::runOnBasicBlock(BasicBlock &BB) { ...@@ -123,6 +123,7 @@ bool RaiseAllocations::runOnBasicBlock(BasicBlock &BB) {
std::string Name(CI->getName()); CI->setName(""); std::string Name(CI->getName()); CI->setName("");
BI = new MallocInst(PtrSByte, Source, Name, BI); BI = new MallocInst(PtrSByte, Source, Name, BI);
CI->replaceAllUsesWith(BI);
BIL.erase(I); BIL.erase(I);
Changed = true; Changed = true;
++NumRaised; ++NumRaised;
......
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