Merge pull request #1531 from ethereum/srcmap

libevmasm: OpPop() optimization keeps the source location
This commit is contained in:
chriseth 2017-01-02 12:13:53 +01:00 committed by GitHub
commit 2176dae82e

View File

@ -120,7 +120,7 @@ struct OpPop: SimplePeepholeOptimizerMethod<OpPop, 2>
if (instructionInfo(instr).ret == 1 && !instructionInfo(instr).sideEffects)
{
for (int j = 0; j < instructionInfo(instr).args; j++)
*_out = Instruction::POP;
*_out = {Instruction::POP, _op.location()};
return true;
}
}