[llvm-commits] CVS: llvm/lib/Transforms/Scalar/RaiseAllocations.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 10 18:32:01 PDT 2002
Changes in directory llvm/lib/Transforms/Scalar:
RaiseAllocations.cpp updated: 1.10 -> 1.11
---
Log message:
Fix bug in previous checkin
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/RaiseAllocations.cpp
diff -u llvm/lib/Transforms/Scalar/RaiseAllocations.cpp:1.10 llvm/lib/Transforms/Scalar/RaiseAllocations.cpp:1.11
--- llvm/lib/Transforms/Scalar/RaiseAllocations.cpp:1.10 Tue Sep 10 17:38:47 2002
+++ llvm/lib/Transforms/Scalar/RaiseAllocations.cpp Tue Sep 10 18:31:12 2002
@@ -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;
More information about the llvm-commits
mailing list