summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-10 23:31:12 +0000
committerChris Lattner <sabre@nondot.org>2002-09-10 23:31:12 +0000
commit9674b869e5be034ef27e6d55568ee7d0f8525206 (patch)
treeadfe96d4e01a57451df72298dd0e01c5f4e0d319 /llvm/lib/Transforms
parent55f3d94b40f43985379b0747c002c15de9f79256 (diff)
downloadbcm5719-llvm-9674b869e5be034ef27e6d55568ee7d0f8525206.tar.gz
bcm5719-llvm-9674b869e5be034ef27e6d55568ee7d0f8525206.zip
Fix bug in previous checkin
llvm-svn: 3672
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/RaiseAllocations.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
index cc4573586dc..241e1f55eed 100644
--- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
+++ b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -123,6 +123,7 @@ bool RaiseAllocations::runOnBasicBlock(BasicBlock &BB) {
std::string Name(CI->getName()); CI->setName("");
BI = new MallocInst(PtrSByte, Source, Name, BI);
+ CI->replaceAllUsesWith(BI);
BIL.erase(I);
Changed = true;
++NumRaised;
OpenPOWER on IntegriCloud