1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Programs that actually free memory were broken

llvm-svn: 2307
This commit is contained in:
Chris Lattner 2002-04-18 22:11:30 +00:00
parent 006a45af20
commit 039edb92f3

View File

@ -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