Use solAssert instead of boost throw where possible

This commit is contained in:
Alex Beregszaszi committed 2017-07-26 22:23:21 +01:00
1 parent a605e4eb95
commit 8098030986
7 files changed
+36 -51

No files matched your search

+1 -2
View File
@@ -196,8 +196,7 @@ ModifierDefinition const& CompilerContext::functionModifier(string const& _name)
for (ModifierDefinition const* modifier: contract->functionModifiers())
if (modifier->name() == _name)
return *modifier;
BOOST_THROW_EXCEPTION(InternalCompilerError()
<< errinfo_comment("Function modifier " + _name + " not found."));
solAssert(false, "Function modifier " + _name + " not found.");
}
unsigned CompilerContext::baseStackOffsetOfVariable(Declaration const& _declaration) const