libevmasm: OpPop() optimization keeps the source location

fixes #1521
This commit is contained in:
Yoichi Hirai 2016-12-30 13:52:08 +01:00
parent eafd852a76
commit 2d60990238
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

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;
}
}