From 2d60990238898620739281827692c3adc247a9cc Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Fri, 30 Dec 2016 13:52:08 +0100 Subject: libevmasm: OpPop() optimization keeps the source location fixes #1521 --- libevmasm/PeepholeOptimiser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libevmasm/PeepholeOptimiser.cpp b/libevmasm/PeepholeOptimiser.cpp index b96b0295..923ffa67 100644 --- a/libevmasm/PeepholeOptimiser.cpp +++ b/libevmasm/PeepholeOptimiser.cpp @@ -120,7 +120,7 @@ struct OpPop: SimplePeepholeOptimizerMethod 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; } } -- cgit v1.2.3