This commit is contained in:
Christian Parpart
2020-06-08 10:20:39 +02:00
parent 2130c446e2
commit 1966438472
6 changed files with 35 additions and 7 deletions
+5 -2
View File
@@ -278,9 +278,12 @@ void CompilerStack::loadMissingInterfaces()
{
for (auto const& sourcePair: m_sources)
{
ASTPointer<SourceUnit> const& source = sourcePair.second.ast;;
ASTPointer<SourceUnit> const& source = sourcePair.second.ast;
if (!source)
// This can happen if the input source code contained invalid source code.
continue;
for (auto const& astNode: source->nodes())
for (ASTPointer<ASTNode> const& astNode: source->nodes())
{
if (auto* contract = dynamic_cast<ContractDefinition*>(astNode.get()))
{