From 039edb92f3136112d5186a0139d9884dd304c666 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Apr 2002 22:11:30 +0000 Subject: [PATCH] Programs that actually free memory were broken llvm-svn: 2307 --- lib/Transforms/IPO/OldPoolAllocate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/OldPoolAllocate.cpp b/lib/Transforms/IPO/OldPoolAllocate.cpp index 1e63381c893..0620d1d02d9 100644 --- a/lib/Transforms/IPO/OldPoolAllocate.cpp +++ b/lib/Transforms/IPO/OldPoolAllocate.cpp @@ -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