diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-06 01:56:29 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-23 01:45:34 +0800 |
commit | cb4966046d9871b63084ddcf0ff6fac8a4c322aa (patch) | |
tree | 3fde5c5114865b10c30c71b8a2327a476868d041 /libsolidity/inlineasm/AsmParser.cpp | |
parent | 15b4d4def23bcf0feb93c67dccc137baa59d5102 (diff) | |
download | dexon-solidity-cb4966046d9871b63084ddcf0ff6fac8a4c322aa.tar.gz dexon-solidity-cb4966046d9871b63084ddcf0ff6fac8a4c322aa.tar.zst dexon-solidity-cb4966046d9871b63084ddcf0ff6fac8a4c322aa.zip |
Enable a single right hand item on let
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; } |