Skip to content

Commit 847f9cb

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 700f776 commit 847f9cb

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
@@ -608,10 +608,10 @@ ASTContext::ASTContext(
608608
: LangOpts(langOpts), TypeCheckerOpts(typeckOpts), SILOpts(silOpts),
609609
SearchPathOpts(SearchPathOpts), ClangImporterOpts(ClangImporterOpts),
610610
SymbolGraphOpts(SymbolGraphOpts), SourceMgr(SourceMgr), Diags(Diags),
611-
PreModuleImportCallback(PreModuleImportCallback),
612611
evaluator(Diags, langOpts), TheBuiltinModule(createBuiltinModule(*this)),
613612
StdlibModuleName(getIdentifier(STDLIB_NAME)),
614613
SwiftShimsModuleName(getIdentifier(SWIFT_SHIMS_NAME)),
614+
PreModuleImportCallback(PreModuleImportCallback),
615615
TheErrorType(new (*this, AllocationArena::Permanent) ErrorType(
616616
*this, Type(), RecursiveTypeProperties::HasError)),
617617
TheUnresolvedType(new (*this, AllocationArena::Permanent)

0 commit comments

Comments
 (0)