diff --git a/libsolidity/CompilerStack.cpp b/libsolidity/CompilerStack.cpp index d6274e2c7..1cbed55ee 100644 --- a/libsolidity/CompilerStack.cpp +++ b/libsolidity/CompilerStack.cpp @@ -264,7 +264,7 @@ void CompilerStack::reset(bool _keepSources) { m_sources.clear(); if (m_addStandardSources) - addSources(StandardSources); + addSources(StandardSources, true); } m_globalContext.reset(); m_sourceOrder.clear(); diff --git a/libsolidity/CompilerStack.h b/libsolidity/CompilerStack.h index 2e7c217d5..2f8c993b0 100644 --- a/libsolidity/CompilerStack.h +++ b/libsolidity/CompilerStack.h @@ -140,7 +140,7 @@ private: std::shared_ptr ast; std::string interface; bool isLibrary = false; - void reset() { scanner.reset(); ast.reset(); interface.clear(); isLibrary = false;} + void reset() { scanner.reset(); ast.reset(); interface.clear(); } }; struct Contract