aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmParser.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-27 00:12:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-27 17:08:02 +0800
commit35f1cf92dbc6082b675e41e184aefe3b24325918 (patch)
treed5300dd01e397c5afb8ab892181bc295fb12a3b0 /libsolidity/inlineasm/AsmParser.cpp
parent2c1fb46bc341d9e44074af23cd4eadd3a9f732c5 (diff)
downloaddexon-solidity-35f1cf92dbc6082b675e41e184aefe3b24325918.tar.gz
dexon-solidity-35f1cf92dbc6082b675e41e184aefe3b24325918.tar.zst
dexon-solidity-35f1cf92dbc6082b675e41e184aefe3b24325918.zip
Remove parentheses from around function return parameters
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r--libsolidity/inlineasm/AsmParser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp
index 0fc0a34f..9513cf77 100644
--- a/libsolidity/inlineasm/AsmParser.cpp
+++ b/libsolidity/inlineasm/AsmParser.cpp
@@ -242,15 +242,13 @@ assembly::FunctionDefinition Parser::parseFunctionDefinition()
{
expectToken(Token::Sub);
expectToken(Token::GreaterThan);
- expectToken(Token::LParen);
while (true)
{
funDef.returns.push_back(expectAsmIdentifier());
- if (m_scanner->currentToken() == Token::RParen)
+ if (m_scanner->currentToken() == Token::LBrace)
break;
expectToken(Token::Comma);
}
- expectToken(Token::RParen);
}
funDef.body = parseBlock();
funDef.location.end = funDef.body.location.end;