From 3ca6738114f9ae410c7488a1b1d66eeec92833c6 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 30 Apr 2018 15:26:25 +0200 Subject: Add assert about source location. --- libsolidity/parsing/Parser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity') 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 ASTPointer createNode(Args&& ... _args) { + solAssert(m_location.sourceName, ""); if (m_location.end < 0) markEndPosition(); return make_shared(m_location, forward(_args)...); -- cgit