aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/AssemblyStack.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-07 21:41:44 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-07 21:41:44 +0800
commit937c2083207f28e0b084959492f72ef01119c202 (patch)
tree2a8bf16f1b2bb5207c6c2ce9dbc577eedf1f6d89 /libsolidity/interface/AssemblyStack.cpp
parent1fba98496608db555cc29f62eb95c623ca0b4346 (diff)
downloaddexon-solidity-937c2083207f28e0b084959492f72ef01119c202.tar.gz
dexon-solidity-937c2083207f28e0b084959492f72ef01119c202.tar.zst
dexon-solidity-937c2083207f28e0b084959492f72ef01119c202.zip
Reset error list in parseAndAnalyze
Diffstat (limited to 'libsolidity/interface/AssemblyStack.cpp')
-rw-r--r--libsolidity/interface/AssemblyStack.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/interface/AssemblyStack.cpp b/libsolidity/interface/AssemblyStack.cpp
index b027ac3c..dc9d7db2 100644
--- a/libsolidity/interface/AssemblyStack.cpp
+++ b/libsolidity/interface/AssemblyStack.cpp
@@ -43,6 +43,7 @@ Scanner const& AssemblyStack::scanner() const
bool AssemblyStack::parseAndAnalyze(std::string const& _sourceName, std::string const& _source)
{
+ m_errors.clear();
m_analysisSuccessful = false;
m_scanner = make_shared<Scanner>(CharStream(_source), _sourceName);
m_parserResult = assembly::Parser(m_errorReporter, m_language == Language::JULIA).parse(m_scanner);