aboutsummaryrefslogtreecommitdiffstats
path: root/liblll
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-24 19:56:21 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-24 19:59:30 +0800
commitdbbdcc66e61a5a5d36a4fd55087b22e145a1c3e4 (patch)
treeb3460decafd3d8d99a0c5578d067591a5c5b2c6e /liblll
parentb83f77e0e567b58c2ada831e526ad5bacfed8b40 (diff)
downloaddexon-solidity-dbbdcc66e61a5a5d36a4fd55087b22e145a1c3e4.tar.gz
dexon-solidity-dbbdcc66e61a5a5d36a4fd55087b22e145a1c3e4.tar.zst
dexon-solidity-dbbdcc66e61a5a5d36a4fd55087b22e145a1c3e4.zip
LLL: fix redefinitions on some compilers
Diffstat (limited to 'liblll')
-rw-r--r--liblll/CodeFragment.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp
index 7496fe83..56c1e26a 100644
--- a/liblll/CodeFragment.cpp
+++ b/liblll/CodeFragment.cpp
@@ -258,7 +258,11 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
}
else if (ii == 2)
if (_t.size() == 3)
- _s.defs[n] = CodeFragment(i, _s);
+ {
+ /// NOTE: some compilers could do the assignment first if this is done in a single line
+ CodeFragment code = CodeFragment(i, _s);
+ _s.defs[n] = code;
+ }
else
for (auto const& j: i)
{