mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Programs that actually free memory were broken
llvm-svn: 2307
This commit is contained in:
parent
006a45af20
commit
039edb92f3
@ -570,7 +570,7 @@ public:
|
|||||||
Args.push_back(getScalarRef(I->getOperand(0)).Pool.Handle);
|
Args.push_back(getScalarRef(I->getOperand(0)).Pool.Handle);
|
||||||
Instruction *NewCall = new CallInst(PoolAllocator.PoolFree, Args);
|
Instruction *NewCall = new CallInst(PoolAllocator.PoolFree, Args);
|
||||||
ReplaceInstWith(I, NewCall);
|
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
|
// visitCallInst - Create a new call instruction with the extra arguments for
|
||||||
|
Loading…
Reference in New Issue
Block a user