diff options
Diffstat (limited to 'flang/lib/Semantics/resolve-names.cpp')
-rw-r--r-- | flang/lib/Semantics/resolve-names.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/flang/lib/Semantics/resolve-names.cpp b/flang/lib/Semantics/resolve-names.cpp index 304a7b9449d0..a62b7c36fe61 100644 --- a/flang/lib/Semantics/resolve-names.cpp +++ b/flang/lib/Semantics/resolve-names.cpp @@ -2237,7 +2237,7 @@ const DeclTypeSpec *ScopeHandler::GetImplicitType( if (const DerivedTypeSpec * derived{type->AsDerived()}) { // Resolve any forward-referenced derived type; a quick no-op else. auto &instantiatable{*const_cast<DerivedTypeSpec *>(derived)}; - instantiatable.Instantiate(currScope(), context()); + instantiatable.Instantiate(currScope()); } } return type; @@ -3931,7 +3931,7 @@ void DeclarationVisitor::Post(const parser::DerivedTypeSpec &x) { } else { auto restorer{ GetFoldingContext().messages().SetLocation(currStmtSource().value())}; - derived.Instantiate(currScope(), context()); + derived.Instantiate(currScope()); } SetDeclTypeSpec(type); } @@ -6827,7 +6827,7 @@ void ResolveNamesVisitor::FinishSpecificationParts(const ProgramTree &node) { void ResolveNamesVisitor::FinishDerivedTypeInstantiation(Scope &scope) { CHECK(scope.IsDerivedType() && !scope.symbol()); if (DerivedTypeSpec * spec{scope.derivedTypeSpec()}) { - spec->Instantiate(currScope(), context()); + spec->Instantiate(currScope()); const Symbol &origTypeSymbol{spec->typeSymbol()}; if (const Scope * origTypeScope{origTypeSymbol.scope()}) { CHECK(origTypeScope->IsDerivedType() && |