diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-20 19:15:01 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-01 19:06:12 +0800 |
commit | da4cd45a85c1b3fe7b72ca53ba4263a309d40ed1 (patch) | |
tree | 130a35754799f160048be1b4734714a8423cc8ce /Assembly.cpp | |
parent | 735535d9609ed35b1037ed7128f795df162909ca (diff) | |
download | dexon-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.cpp | 6 |
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( |