diff options
author | chriseth <chris@ethereum.org> | 2018-04-30 21:26:25 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-16 09:52:24 +0800 |
commit | 3ca6738114f9ae410c7488a1b1d66eeec92833c6 (patch) | |
tree | c76fa0ada18d4318dcb58c19a18eef47df990e8a | |
parent | 6c8f78fb8ff99c5d28669fa7383a25b8c8523915 (diff) | |
download | dexon-solidity-3ca6738114f9ae410c7488a1b1d66eeec92833c6.tar.gz dexon-solidity-3ca6738114f9ae410c7488a1b1d66eeec92833c6.tar.zst dexon-solidity-3ca6738114f9ae410c7488a1b1d66eeec92833c6.zip |
Add assert about source location.
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 01c1fa99..e2e1eebc 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -54,6 +54,7 @@ public: template <class NodeType, typename... Args> ASTPointer<NodeType> createNode(Args&& ... _args) { + solAssert(m_location.sourceName, ""); if (m_location.end < 0) markEndPosition(); return make_shared<NodeType>(m_location, forward<Args>(_args)...); |