mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Apply a better way to annotate unreachability to the C++ compiler.
This commit is contained in:
@@ -112,7 +112,7 @@ Statement AsmJsonImporter::createStatement(Json::Value const& _node)
|
||||
yulAssert(false, "Invalid nodeType as statement");
|
||||
|
||||
// FIXME: Workaround for spurious GCC 12.1 warning (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105794)
|
||||
throw exception();
|
||||
util::unreachable();
|
||||
}
|
||||
|
||||
Expression AsmJsonImporter::createExpression(Json::Value const& _node)
|
||||
@@ -134,7 +134,7 @@ Expression AsmJsonImporter::createExpression(Json::Value const& _node)
|
||||
yulAssert(false, "Invalid nodeType as expression");
|
||||
|
||||
// FIXME: Workaround for spurious GCC 12.1 warning (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105794)
|
||||
throw exception();
|
||||
util::unreachable();
|
||||
}
|
||||
|
||||
vector<Expression> AsmJsonImporter::createExpressionVector(Json::Value const& _array)
|
||||
|
||||
Reference in New Issue
Block a user