diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-07-19 17:47:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 17:47:21 +0800 |
commit | 3ad326beba8fc9bb65e6ef6fa01d93248ab85db2 (patch) | |
tree | 7964886d862de84e79fa2922f8cbf536e2c0ac7d /liblll | |
parent | 0d50e53739b7db826bb8b620a7ef16abdf3a534c (diff) | |
parent | fa2781d6daa9b836f61ace01f63881582c6371c4 (diff) | |
download | dexon-solidity-3ad326beba8fc9bb65e6ef6fa01d93248ab85db2.tar.gz dexon-solidity-3ad326beba8fc9bb65e6ef6fa01d93248ab85db2.tar.zst dexon-solidity-3ad326beba8fc9bb65e6ef6fa01d93248ab85db2.zip |
Merge pull request #2592 from ethereum/lll-simplify
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); |