1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Plog a memleak in GlobalOpt.

Found by valgrind.

llvm-svn: 151525
This commit is contained in:
Benjamin Kramer 2012-02-27 12:48:24 +00:00
parent 0f1520e70b
commit e96ae5392c

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