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:
Chris Lattner 2002-04-18 22:11:30 +00:00
parent fe6d2ced0e
commit 7b5577b371

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