aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-01-02 19:13:53 +0800
committerGitHub <noreply@github.com>2017-01-02 19:13:53 +0800
commit2176dae82e02625e4df3fee38f0117fa538fd9e6 (patch)
tree14678f0bb44920802f00d093f202301aa8a4eaa4
parenteafd852a766645da0cb466bff681b9bbb1d6da00 (diff)
parent2d60990238898620739281827692c3adc247a9cc (diff)
downloaddexon-solidity-2176dae82e02625e4df3fee38f0117fa538fd9e6.tar.gz
dexon-solidity-2176dae82e02625e4df3fee38f0117fa538fd9e6.tar.zst
dexon-solidity-2176dae82e02625e4df3fee38f0117fa538fd9e6.zip
Merge pull request #1531 from ethereum/srcmap
libevmasm: OpPop() optimization keeps the source location
-rw-r--r--libevmasm/PeepholeOptimiser.cpp2
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;
}
}