@@ -188,18 +188,16 @@ namespace {
188188 };
189189
190190 class ParsingAction : public clang ::ASTFrontendAction {
191- ASTContext &Ctx;
192191 ClangImporter &Importer;
193192 ClangImporter::Implementation &Impl;
194193 const ClangImporterOptions &ImporterOpts;
195194 std::string SwiftPCHHash;
196195 public:
197- explicit ParsingAction (ASTContext &ctx,
198- ClangImporter &importer,
196+ explicit ParsingAction (ClangImporter &importer,
199197 ClangImporter::Implementation &impl,
200198 const ClangImporterOptions &importerOpts,
201199 std::string swiftPCHHash)
202- : Ctx(ctx), Importer(importer), Impl(impl), ImporterOpts(importerOpts),
200+ : Importer(importer), Impl(impl), ImporterOpts(importerOpts),
203201 SwiftPCHHash(swiftPCHHash) {}
204202 std::unique_ptr<clang::ASTConsumer>
205203 CreateASTConsumer (clang::CompilerInstance &CI, StringRef InFile) override {
@@ -1477,7 +1475,7 @@ ClangImporter::create(ASTContext &ctx,
14771475 }
14781476
14791477 // Create the associated action.
1480- importer->Impl .Action .reset (new ParsingAction (ctx, *importer,
1478+ importer->Impl .Action .reset (new ParsingAction (*importer,
14811479 importer->Impl ,
14821480 importerOpts,
14831481 swiftPCHHash));
0 commit comments