LLL: parseLLL to return empty string on failure

This commit is contained in:
Alex Beregszaszi
2016-11-29 21:42:22 +00:00
parent f70f8cf06a
commit 3ec0bb5bfa
+6 -5
View File
@@ -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();
}