diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 23:31:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 23:31:12 +0000 |
commit | 08c2e4838de6b5aebcccb13ef067283c5241f8f2 (patch) | |
tree | 4f7aaef64720c12d2f8fda665c0e14df4cf673a6 /lib/Transforms/IPO/RaiseAllocations.cpp | |
parent | f283608f2ea7fd52fdd5d283a1f199b95efb931d (diff) | |
download | llvm-08c2e4838de6b5aebcccb13ef067283c5241f8f2.tar.gz llvm-08c2e4838de6b5aebcccb13ef067283c5241f8f2.tar.bz2 llvm-08c2e4838de6b5aebcccb13ef067283c5241f8f2.tar.xz |
Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/RaiseAllocations.cpp')
-rw-r--r-- | lib/Transforms/IPO/RaiseAllocations.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp index cc4573586d..241e1f55ee 100644 --- a/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/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; |