aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliana <liana@ethdev.com>2015-02-06 23:57:26 +0800
committerLiana Husikyan <liana@ethdev.com>2015-02-09 09:25:18 +0800
commit516e46ea6b6041ef1fe1e8070d3fc3063baceef6 (patch)
tree3b6a804a2a7ac0ad1f76d48a1992aee61d83ff72
parent97b443e1812a4b5564191db7123442882f0db8f7 (diff)
downloaddexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.tar
dexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.tar.gz
dexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.tar.bz2
dexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.tar.lz
dexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.tar.xz
dexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.tar.zst
dexon-solidity-516e46ea6b6041ef1fe1e8070d3fc3063baceef6.zip
- added assertion
-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