aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser.cpp b/Parser.cpp
index a542d9b7..4d5a50b3 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -284,6 +284,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(VarDeclParserOp
if (_options.allowEmptyName && m_scanner->getCurrentToken() != Token::IDENTIFIER)
{
identifier = make_shared<ASTString>("");
+ solAssert(!!type, "");
nodeFactory.setEndPositionFromNode(type);
}
else