mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f283608f2e
commit
08c2e4838d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user