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:
Benjamin Kramer 2012-02-27 12:48:24 +00:00
parent 768ada611b
commit 3bbf2b6548

View File

@ -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)) {