commit | 9674b869e5be034ef27e6d55568ee7d0f8525206 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Sep 10 23:31:12 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Sep 10 23:31:12 2002 +0000 |
tree | adfe96d4e01a57451df72298dd0e01c5f4e0d319 | |
parent | 55f3d94b40f43985379b0747c002c15de9f79256 [diff] [blame] |
Fix bug in previous checkin llvm-svn: 3672
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp index cc45735..241e1f5 100644 --- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -123,6 +123,7 @@ std::string Name(CI->getName()); CI->setName(""); BI = new MallocInst(PtrSByte, Source, Name, BI); + CI->replaceAllUsesWith(BI); BIL.erase(I); Changed = true; ++NumRaised;