mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Plog a memleak in GlobalOpt.
Found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
768ada611b
commit
3bbf2b6548
@ -2559,7 +2559,7 @@ bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst,
|
||||
ValueStack.push_back(new DenseMap<Value*, Constant*>);
|
||||
if (!EvaluateFunction(Callee, RetVal, Formals))
|
||||
return false;
|
||||
ValueStack.pop_back();
|
||||
delete ValueStack.pop_back_val();
|
||||
InstResult = RetVal;
|
||||
|
||||
if (InvokeInst *II = dyn_cast<InvokeInst>(CurInst)) {
|
||||
|
Loading…
Reference in New Issue
Block a user