@@ -2259,8 +2259,9 @@ ClangImporter::Implementation::Implementation(
22592259 IsReadingBridgingPCH(false ),
22602260 CurrentVersion(ImportNameVersion::fromOptions(ctx.LangOpts)),
22612261 Walker(DiagnosticWalker(*this )),
2262+ BuffersForDiagnostics(ctx.SourceMgr),
22622263 BridgingHeaderLookupTable(new SwiftLookupTable(nullptr )),
2263- BuffersForDiagnostics(ctx.SourceMgr), platformAvailability(ctx.LangOpts),
2264+ platformAvailability(ctx.LangOpts),
22642265 nameImporter(),
22652266 DisableSourceImport(ctx.ClangImporterOpts.DisableSourceImport),
22662267 DWARFImporter(dwarfImporterDelegate) {}
@@ -4587,12 +4588,6 @@ synthesizeBaseClassFieldGetterBody(AbstractFunctionDecl *afd, void *context) {
45874588 casted->setType (baseStruct->getSelfInterfaceType ());
45884589 casted->setThrows (false );
45894590
4590- // If the base class var has a clang decl, that means it's an access into a
4591- // stored field. Otherwise, we're looking into another base class, so it's a
4592- // another synthesized accessor.
4593- AccessSemantics accessKind = baseClassVar->getClangDecl ()
4594- ? AccessSemantics::DirectToStorage
4595- : AccessSemantics::DirectToImplementation;
45964591 Expr *baseMember = nullptr ;
45974592 if (auto subscript = dyn_cast<SubscriptDecl>(baseClassVar)) {
45984593 auto paramDecl = getterDecl->getParameters ()->get (0 );
0 commit comments