Skip to content

Commit ee87094

Browse files
committed
[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 <[email protected]>
1 parent 5ac648b commit ee87094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ ASTContext::ASTContext(
611611
: LangOpts(langOpts), TypeCheckerOpts(typecheckOpts), SILOpts(silOpts),
612612
SearchPathOpts(SearchPathOpts), ClangImporterOpts(ClangImporterOpts),
613613
SymbolGraphOpts(SymbolGraphOpts), SourceMgr(SourceMgr), Diags(Diags),
614-
PreModuleImportCallback(PreModuleImportCallback),
615614
evaluator(Diags, langOpts), TheBuiltinModule(createBuiltinModule(*this)),
616615
StdlibModuleName(getIdentifier(STDLIB_NAME)),
617616
SwiftShimsModuleName(getIdentifier(SWIFT_SHIMS_NAME)),
617+
PreModuleImportCallback(PreModuleImportCallback),
618618
TheErrorType(new (*this, AllocationArena::Permanent) ErrorType(
619619
*this, Type(), RecursiveTypeProperties::HasError)),
620620
TheUnresolvedType(new (*this, AllocationArena::Permanent)

0 commit comments

Comments
 (0)