diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-22 06:20:13 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 05:42:22 +0800 |
commit | 3ec0bb5bfa986bb38c9a3d7a5a2dc43f3a3a9c15 (patch) | |
tree | b582084429256900bb3a343800199506794e373e /liblll/Compiler.cpp | |
parent | f70f8cf06aea5dcd44b6256b040e05d2a3f7045d (diff) | |
download | dexon-solidity-3ec0bb5bfa986bb38c9a3d7a5a2dc43f3a3a9c15.tar.gz dexon-solidity-3ec0bb5bfa986bb38c9a3d7a5a2dc43f3a3a9c15.tar.zst dexon-solidity-3ec0bb5bfa986bb38c9a3d7a5a2dc43f3a3a9c15.zip |
LLL: parseLLL to return empty string on failure
Diffstat (limited to 'liblll/Compiler.cpp')
-rw-r--r-- | liblll/Compiler.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/liblll/Compiler.cpp b/liblll/Compiler.cpp index 4008022f..0cec7bc8 100644 --- a/liblll/Compiler.cpp +++ b/liblll/Compiler.cpp @@ -99,14 +99,15 @@ std::string dev::eth::compileLLLToAsm(std::string const& _src, bool _opt, std::v string dev::eth::parseLLL(string const& _src) { - sp::utree o; try { + sp::utree o; parseTreeLLL(_src, o); + ostringstream ret; + debugOutAST(ret, o); + killBigints(o); + return ret.str(); } catch (...) {} - ostringstream ret; - debugOutAST(ret, o); - killBigints(o); - return ret.str(); + return string(); } |