diff options
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 53954a49..73f70e3f 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -268,15 +268,8 @@ assembly::VariableDeclaration Parser::parseVariableDeclaration() } expectToken(Token::Colon); expectToken(Token::Assign); - while (true) - { - varDecl.values.emplace_back(new Statement(parseExpression())); - if (m_scanner->currentToken() == Token::Comma) - expectToken(Token::Comma); - else - break; - } - varDecl.location.end = locationOf(varDecl.values.back()).end; + varDecl.value.reset(new Statement(parseExpression())); + varDecl.location.end = locationOf(*varDecl.value).end; return varDecl; } |