mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use solAssert instead of boost throw where possible
This commit is contained in:
@@ -245,10 +245,7 @@ public:
|
||||
virtual std::string canonicalName(bool /*_addDataLocation*/) const { return toString(true); }
|
||||
virtual u256 literalValue(Literal const*) const
|
||||
{
|
||||
BOOST_THROW_EXCEPTION(
|
||||
InternalCompilerError() <<
|
||||
errinfo_comment("Literal value requested for type without literals.")
|
||||
);
|
||||
solAssert(false, "Literal value requested for type without literals.");
|
||||
}
|
||||
|
||||
/// @returns a (simpler) type that is encoded in the same way for external function calls.
|
||||
|
||||
Reference in New Issue
Block a user