aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit7b5577b371cd96cf500108fa173b179a705e6857 (patch)
tree691305bf3933410def71e6a1d69a40cf0cb9644e /lib
parentfe6d2ced0e93249c49f58c477e41f2d61afa50da (diff)
downloadexternal_llvm-7b5577b371cd96cf500108fa173b179a705e6857.zip
external_llvm-7b5577b371cd96cf500108fa173b179a705e6857.tar.gz
external_llvm-7b5577b371cd96cf500108fa173b179a705e6857.tar.bz2
Programs that actually free memory were broken
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/IPO/OldPoolAllocate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/OldPoolAllocate.cpp b/lib/Transforms/IPO/OldPoolAllocate.cpp
index 1e63381..0620d1d 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