mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ASTContext] Fix unordered member initialization warning (NFC)
This patch should fix a warning triggered because `PreModuleImportCallback` is initialized before other `ASTContext` members. Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
@@ -611,10 +611,10 @@ ASTContext::ASTContext(
|
||||
: LangOpts(langOpts), TypeCheckerOpts(typecheckOpts), SILOpts(silOpts),
|
||||
SearchPathOpts(SearchPathOpts), ClangImporterOpts(ClangImporterOpts),
|
||||
SymbolGraphOpts(SymbolGraphOpts), SourceMgr(SourceMgr), Diags(Diags),
|
||||
PreModuleImportCallback(PreModuleImportCallback),
|
||||
evaluator(Diags, langOpts), TheBuiltinModule(createBuiltinModule(*this)),
|
||||
StdlibModuleName(getIdentifier(STDLIB_NAME)),
|
||||
SwiftShimsModuleName(getIdentifier(SWIFT_SHIMS_NAME)),
|
||||
PreModuleImportCallback(PreModuleImportCallback),
|
||||
TheErrorType(new (*this, AllocationArena::Permanent) ErrorType(
|
||||
*this, Type(), RecursiveTypeProperties::HasError)),
|
||||
TheUnresolvedType(new (*this, AllocationArena::Permanent)
|
||||
|
||||
Reference in New Issue
Block a user