diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-18 22:11:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-18 22:11:30 +0000 |
| commit | 271255b08724b4f9a86fa96d978e525e4bf0325c (patch) | |
| tree | f2e476cf6086a9553e0f2039e84bfe1551550e03 /llvm/lib | |
| parent | a7d90ceccb04f2a6b568334c66e2eadf85ae7747 (diff) | |
| download | bcm5719-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.cpp | 2 |
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 |

