aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-20 18:47:20 +0800
committerchriseth <c@ethdev.com>2017-01-20 19:00:16 +0800
commit7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad (patch)
tree1fbfc682094a366170500cf2987084c42e1c4834 /libsolidity/interface/CompilerStack.cpp
parentda178d967fb66ca508d16bbe3feecf1962dcf6ef (diff)
downloaddexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.gz
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.zst
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.zip
Reset AST node IDs between compilation runs.
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r--libsolidity/interface/CompilerStack.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index 61fc7728..85ec0fb1 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -112,6 +112,7 @@ bool CompilerStack::parse()
{
//reset
m_errors.clear();
+ ASTNode::resetID();
m_parseSuccessful = false;
if (SemVerVersion{string(VersionString)}.isPrerelease())