mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Programs that actually free memory were broken
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fe6d2ced0e
commit
7b5577b371
@ -570,7 +570,7 @@ public:
|
||||
Args.push_back(getScalarRef(I->getOperand(0)).Pool.Handle);
|
||||
Instruction *NewCall = new CallInst(PoolAllocator.PoolFree, Args);
|
||||
ReplaceInstWith(I, NewCall);
|
||||
ReferencesToUpdate.push_back(RefToUpdate(NewCall, 0, I->getOperand(0)));
|
||||
ReferencesToUpdate.push_back(RefToUpdate(NewCall, 1, I->getOperand(0)));
|
||||
}
|
||||
|
||||
// visitCallInst - Create a new call instruction with the extra arguments for
|
||||
|
Loading…
Reference in New Issue
Block a user