aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmParser.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-06 01:56:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-23 01:45:34 +0800
commitcb4966046d9871b63084ddcf0ff6fac8a4c322aa (patch)
tree3fde5c5114865b10c30c71b8a2327a476868d041 /libsolidity/inlineasm/AsmParser.cpp
parent15b4d4def23bcf0feb93c67dccc137baa59d5102 (diff)
downloaddexon-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.cpp11
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;
}