LLL: parseLLL to return empty string on failure

This commit is contained in:
Alex Beregszaszi 2016-11-21 22:20:13 +00:00
parent f70f8cf06a
commit 3ec0bb5bfa

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);
}
catch (...) {}
ostringstream ret;
debugOutAST(ret, o);
killBigints(o);
return ret.str();
}
catch (...) {}
return string();
}