@@ -1132,9 +1132,9 @@ struct ParserUnit::Implementation {
11321132 std::unique_ptr<Parser> TheParser;
11331133
11341134 Implementation (SourceManager &SM, SourceFileKind SFKind, unsigned BufferID,
1135- const LangOptions &Opts, const TypeCheckerOptions &TyOpts,
1136- const SILOptions &silOpts, StringRef ModuleName)
1137- : LangOpts(Opts), TypeCheckerOpts(TyOpts), SILOpts(silOpts ), Diags(SM),
1135+ const LangOptions &Opts, StringRef ModuleName)
1136+ : LangOpts(Opts), TypeCheckerOpts(TypeCheckerOptions()),
1137+ SILOpts (SILOptions() ), Diags(SM),
11381138 Ctx(*ASTContext::get (LangOpts, TypeCheckerOpts, SILOpts, SearchPathOpts,
11391139 clangImporterOpts, symbolGraphOpts, CASOpts, SM,
11401140 Diags)) {
@@ -1156,23 +1156,19 @@ struct ParserUnit::Implementation {
11561156
11571157ParserUnit::ParserUnit (SourceManager &SM, SourceFileKind SFKind,
11581158 unsigned BufferID)
1159- : ParserUnit(SM, SFKind, BufferID, LangOptions(), TypeCheckerOptions(),
1160- SILOptions(), "input") {}
1159+ : ParserUnit(SM, SFKind, BufferID, LangOptions(), "input") {}
11611160
11621161ParserUnit::ParserUnit (SourceManager &SM, SourceFileKind SFKind,
11631162 unsigned BufferID, const LangOptions &LangOpts,
1164- const TypeCheckerOptions &TypeCheckOpts,
1165- const SILOptions &SILOpts, StringRef ModuleName)
1166- : Impl(*new Implementation(SM, SFKind, BufferID, LangOpts, TypeCheckOpts,
1167- SILOpts, ModuleName)) {
1163+ StringRef ModuleName)
1164+ : Impl(*new Implementation(SM, SFKind, BufferID, LangOpts, ModuleName)) {
11681165 Impl.TheParser .reset (new Parser (BufferID, *Impl.SF , /* SIL=*/ nullptr ,
11691166 /* PersistentState=*/ nullptr ));
11701167}
11711168
11721169ParserUnit::ParserUnit (SourceManager &SM, SourceFileKind SFKind,
11731170 unsigned BufferID, unsigned Offset, unsigned EndOffset)
1174- : Impl(*new Implementation(SM, SFKind, BufferID, LangOptions(),
1175- TypeCheckerOptions(), SILOptions(), "input")) {
1171+ : Impl(*new Implementation(SM, SFKind, BufferID, LangOptions(), "input")) {
11761172
11771173 std::unique_ptr<Lexer> Lex;
11781174 Lex.reset (new Lexer (Impl.LangOpts , SM,
0 commit comments