diff --git a/libyul/AsmParser.cpp b/libyul/AsmParser.cpp index 58babaaac..e19f5b8ce 100644 --- a/libyul/AsmParser.cpp +++ b/libyul/AsmParser.cpp @@ -199,21 +199,8 @@ Statement Parser::parseStatement() break; } - if (holds_alternative(elementary)) - { - Identifier identifier = std::get(move(elementary)); - return ExpressionStatement{identifier.location, { move(identifier) }}; - } - else if (holds_alternative(elementary)) - { - Literal literal = std::get(move(elementary)); - return ExpressionStatement{literal.location, { move(literal) }}; - } - else - { - yulAssert(false, "Invalid elementary operation."); - return {}; - } + yulAssert(false, ""); + return {}; } Case Parser::parseCase()