aboutsummaryrefslogtreecommitdiffstats
path: root/Assembly.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-20 19:15:01 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-01 19:06:12 +0800
commitda4cd45a85c1b3fe7b72ca53ba4263a309d40ed1 (patch)
tree130a35754799f160048be1b4734714a8423cc8ce /Assembly.cpp
parent735535d9609ed35b1037ed7128f795df162909ca (diff)
downloaddexon-solidity-da4cd45a85c1b3fe7b72ca53ba4263a309d40ed1.tar.gz
dexon-solidity-da4cd45a85c1b3fe7b72ca53ba4263a309d40ed1.tar.zst
dexon-solidity-da4cd45a85c1b3fe7b72ca53ba4263a309d40ed1.zip
corrected asm-json output
Diffstat (limited to 'Assembly.cpp')
-rw-r--r--Assembly.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Assembly.cpp b/Assembly.cpp
index f492260a..dabf646c 100644
--- a/Assembly.cpp
+++ b/Assembly.cpp
@@ -213,9 +213,9 @@ Json::Value Assembly::streamAsmJson(ostream& _out, StringMap const& _sourceCodes
if (i.data() == 0)
collection.append(
createJsonValue("PUSH [ErrorTag]", i.getLocation().start, i.getLocation().end, ""));
-
- collection.append(
- createJsonValue("PUSH [tag]", i.getLocation().start, i.getLocation().end, string(i.data())));
+ else
+ collection.append(
+ createJsonValue("PUSH [tag]", i.getLocation().start, i.getLocation().end, string(i.data())));
break;
case PushSub:
collection.append(