[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:
Med Ismail Bennani
2022-06-16 12:47:19 -07:00
parent 5ac648b01c
commit ee87094e9e

View File

@@ -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)