diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-25 19:23:34 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-19 04:12:43 +0800 |
commit | fa2781d6daa9b836f61ace01f63881582c6371c4 (patch) | |
tree | c0aa6f57120e6b5425399942ba1e064b1300c08e /liblll | |
parent | 01fbc636239f78134b37f9dedeacf40455ee2e0c (diff) | |
download | dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.tar dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.tar.gz dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.tar.bz2 dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.tar.lz dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.tar.xz dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.tar.zst dexon-solidity-fa2781d6daa9b836f61ace01f63881582c6371c4.zip |
LLL: remove useless code
Diffstat (limited to 'liblll')
-rw-r--r-- | liblll/CodeFragment.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp index f637dfb1..794bef81 100644 --- a/liblll/CodeFragment.cpp +++ b/liblll/CodeFragment.cpp @@ -412,11 +412,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s) else if (c_instructions.count(us)) { auto it = c_instructions.find(us); - int ea = instructionInfo(it->second).args; - if (ea >= 0) - requireSize(ea); - else - requireMinSize(-ea); + requireSize(instructionInfo(it->second).args); for (unsigned i = code.size(); i; --i) m_asm.append(code[i - 1].m_asm, 1); |