diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-12-30 20:52:08 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-12-30 20:52:38 +0800 |
commit | 2d60990238898620739281827692c3adc247a9cc (patch) | |
tree | 14678f0bb44920802f00d093f202301aa8a4eaa4 | |
parent | eafd852a766645da0cb466bff681b9bbb1d6da00 (diff) | |
download | dexon-solidity-2d60990238898620739281827692c3adc247a9cc.tar dexon-solidity-2d60990238898620739281827692c3adc247a9cc.tar.gz dexon-solidity-2d60990238898620739281827692c3adc247a9cc.tar.bz2 dexon-solidity-2d60990238898620739281827692c3adc247a9cc.tar.lz dexon-solidity-2d60990238898620739281827692c3adc247a9cc.tar.xz dexon-solidity-2d60990238898620739281827692c3adc247a9cc.tar.zst dexon-solidity-2d60990238898620739281827692c3adc247a9cc.zip |
libevmasm: OpPop() optimization keeps the source location
fixes #1521
-rw-r--r-- | libevmasm/PeepholeOptimiser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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; } } |