aboutsummaryrefslogtreecommitdiffstats
path: root/CodeFragment.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-08-21 22:14:12 +0800
committerGav Wood <i@gavwood.com>2014-08-21 22:14:12 +0800
commit74f198c0438a2674103c8e1ce24a0feedef278dc (patch)
tree7870760c0768b2dc4ce455f5659a84a10979c33f /CodeFragment.cpp
parent5cdacb1bc1728ef0411f6d6cdb4172bc26dc5fa7 (diff)
downloaddexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.tar
dexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.tar.gz
dexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.tar.bz2
dexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.tar.lz
dexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.tar.xz
dexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.tar.zst
dexon-solidity-74f198c0438a2674103c8e1ce24a0feedef278dc.zip
SWAP & DUP
Diffstat (limited to 'CodeFragment.cpp')
-rw-r--r--CodeFragment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeFragment.cpp b/CodeFragment.cpp
index 09f49bc7..a9128e29 100644
--- a/CodeFragment.cpp
+++ b/CodeFragment.cpp
@@ -77,7 +77,7 @@ CodeFragment::CodeFragment(sp::utree const& _t, CompilerState& _s, bool _allowAS
string us = boost::algorithm::to_upper_copy(s);
if (_allowASM && c_instructions.count(us))
m_asm.append(c_instructions.at(us));
- if (_s.defs.count(s))
+ else if (_s.defs.count(s))
m_asm.append(_s.defs.at(s).m_asm);
else if (_s.args.count(s))
m_asm.append(_s.args.at(s).m_asm);