aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-25 21:24:07 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-25 21:24:07 +0800
commitf2317670faf1984fe1b92696a50439bd0b33d39b (patch)
tree59f60445acf78a9322a833283bf5de9eaa336998 /libsolidity/parsing/Parser.cpp
parentef8355da7f301253303743187d00498791399ab3 (diff)
downloaddexon-solidity-f2317670faf1984fe1b92696a50439bd0b33d39b.tar.gz
dexon-solidity-f2317670faf1984fe1b92696a50439bd0b33d39b.tar.zst
dexon-solidity-f2317670faf1984fe1b92696a50439bd0b33d39b.zip
Remove two other fall-through cases in Parser
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r--libsolidity/parsing/Parser.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index 2f28db3e..8429bf79 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -903,11 +903,13 @@ ASTPointer<Statement> Parser::parseStatement()
{
statement = ASTNodeFactory(*this).createNode<PlaceholderStatement>(docString);
m_scanner->next();
- break;
}
- // fall-through
+ else
+ statement = parseSimpleStatement(docString);
+ break;
default:
statement = parseSimpleStatement(docString);
+ break;
}
expectToken(Token::Semicolon);
return statement;