Replace uses of BOOST_THROW_EXCEPTION with assertThrow

Where appropriate.
This commit is contained in:
Alex Beregszaszi
2019-11-26 13:07:42 +01:00
parent e2627e2232
commit 991fbd2956
5 changed files with 19 additions and 26 deletions
+5 -5
View File
@@ -207,11 +207,11 @@ void CodeGenerator::assemble(
}
catch (StackTooDeepError const& _e)
{
BOOST_THROW_EXCEPTION(
InternalCompilerError() << errinfo_comment(
"Stack too deep when compiling inline assembly" +
(_e.comment() ? ": " + *_e.comment() : ".")
));
solAssert(
false,
"Stack too deep when compiling inline assembly" +
(_e.comment() ? ": " + *_e.comment() : ".")
);
}
solAssert(transform.stackErrors().empty(), "Stack errors present but not thrown.");
}