diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 23:46:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 23:46:20 +0800 |
commit | ac357d12252ceb113a823a400418a59a94521c71 (patch) | |
tree | 1819b51023cc3ed4754fb8253da6ec407a406c0f /liblll | |
parent | 6ae6c70cde08f83667b55f09623f9584fbbd41b3 (diff) | |
parent | 53d4433484c33b32d4d1063330633a308c0e48dd (diff) | |
download | dexon-solidity-ac357d12252ceb113a823a400418a59a94521c71.tar.gz dexon-solidity-ac357d12252ceb113a823a400418a59a94521c71.tar.zst dexon-solidity-ac357d12252ceb113a823a400418a59a94521c71.zip |
Merge pull request #1442 from ethereum/lll-testing
LLL: introduce testing framework
Diffstat (limited to 'liblll')
-rw-r--r-- | liblll/Compiler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/liblll/Compiler.cpp b/liblll/Compiler.cpp index 4008022f..cd909f34 100644 --- a/liblll/Compiler.cpp +++ b/liblll/Compiler.cpp @@ -100,11 +100,17 @@ std::string dev::eth::compileLLLToAsm(std::string const& _src, bool _opt, std::v string dev::eth::parseLLL(string const& _src) { sp::utree o; + try { parseTreeLLL(_src, o); } - catch (...) {} + catch (...) + { + killBigints(o); + return string(); + } + ostringstream ret; debugOutAST(ret, o); killBigints(o); |