mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
LLL: parseLLL to return empty string on failure
This commit is contained in:
parent
f70f8cf06a
commit
3ec0bb5bfa
@ -99,14 +99,15 @@ std::string dev::eth::compileLLLToAsm(std::string const& _src, bool _opt, std::v
|
|||||||
|
|
||||||
string dev::eth::parseLLL(string const& _src)
|
string dev::eth::parseLLL(string const& _src)
|
||||||
{
|
{
|
||||||
sp::utree o;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
sp::utree o;
|
||||||
parseTreeLLL(_src, o);
|
parseTreeLLL(_src, o);
|
||||||
|
ostringstream ret;
|
||||||
|
debugOutAST(ret, o);
|
||||||
|
killBigints(o);
|
||||||
|
return ret.str();
|
||||||
}
|
}
|
||||||
catch (...) {}
|
catch (...) {}
|
||||||
ostringstream ret;
|
return string();
|
||||||
debugOutAST(ret, o);
|
|
||||||
killBigints(o);
|
|
||||||
return ret.str();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user