summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-18 22:11:30 +0000
committerChris Lattner <sabre@nondot.org>2002-04-18 22:11:30 +0000
commit271255b08724b4f9a86fa96d978e525e4bf0325c (patch)
treef2e476cf6086a9553e0f2039e84bfe1551550e03 /llvm/lib
parenta7d90ceccb04f2a6b568334c66e2eadf85ae7747 (diff)
downloadbcm5719-llvm-271255b08724b4f9a86fa96d978e525e4bf0325c.tar.gz
bcm5719-llvm-271255b08724b4f9a86fa96d978e525e4bf0325c.zip
Programs that actually free memory were broken
llvm-svn: 2307
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/OldPoolAllocate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp b/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp
index 1e63381c893..0620d1d02d9 100644
--- a/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud