Skip to content

Commit 66d7133

Browse files
authored
Merge pull request #59473 from medismailben/main
Fix swift/main bots
2 parents 768a82f + 1328dca commit 66d7133

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

include/swift/AST/ASTContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class ASTContext final {
224224
void operator=(const ASTContext&) = delete;
225225

226226
ASTContext(
227-
LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
227+
LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
228228
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
229229
ClangImporterOptions &ClangImporterOpts,
230230
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
@@ -241,7 +241,7 @@ class ASTContext final {
241241
void operator delete(void *Data) throw();
242242

243243
static ASTContext *
244-
get(LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
244+
get(LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
245245
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
246246
ClangImporterOptions &ClangImporterOpts,
247247
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,

lib/AST/ASTContext.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,9 @@ void ASTContext::operator delete(void *Data) throw() {
580580
}
581581

582582
ASTContext *ASTContext::get(
583-
LangOptions &langOpts, TypeCheckerOptions &typeckOpts, SILOptions &silOpts,
584-
SearchPathOptions &SearchPathOpts, ClangImporterOptions &ClangImporterOpts,
583+
LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
584+
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
585+
ClangImporterOptions &ClangImporterOpts,
585586
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
586587
SourceManager &SourceMgr, DiagnosticEngine &Diags,
587588
std::function<bool(llvm::StringRef, bool)> PreModuleImportCallback) {
@@ -595,14 +596,15 @@ ASTContext *ASTContext::get(
595596
impl = reinterpret_cast<void *>(
596597
llvm::alignAddr(impl, llvm::Align(alignof(Implementation))));
597598
new (impl) Implementation();
598-
return new (mem) ASTContext(langOpts, typeckOpts, silOpts, SearchPathOpts,
599+
return new (mem) ASTContext(langOpts, typecheckOpts, silOpts, SearchPathOpts,
599600
ClangImporterOpts, SymbolGraphOpts, SourceMgr,
600601
Diags, PreModuleImportCallback);
601602
}
602603

603604
ASTContext::ASTContext(
604-
LangOptions &langOpts, TypeCheckerOptions &typeckOpts, SILOptions &silOpts,
605-
SearchPathOptions &SearchPathOpts, ClangImporterOptions &ClangImporterOpts,
605+
LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
606+
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
607+
ClangImporterOptions &ClangImporterOpts,
606608
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
607609
SourceManager &SourceMgr, DiagnosticEngine &Diags,
608610
std::function<bool(llvm::StringRef, bool)> PreModuleImportCallback)

0 commit comments

Comments
 (0)