Skip to content

Commit f659ef4

Browse files
[AST] Fix a warning
This patch fixes: clang/lib/AST/ASTContext.cpp:931:40: error: field 'DependentBitIntTypes' will be initialized after field 'FunctionProtoTypes' [-Werror,-Wreorder-ctor]
1 parent 3cbdd9f commit f659ef4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,12 +927,12 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
927927
: ConstantArrayTypes(this_(), ConstantArrayTypesLog2InitSize),
928928
DependentSizedArrayTypes(this_()), DependentSizedExtVectorTypes(this_()),
929929
DependentAddressSpaceTypes(this_()), DependentVectorTypes(this_()),
930-
DependentSizedMatrixTypes(this_()), DependentTypeOfExprTypes(this_()),
931-
DependentDecltypeTypes(this_()), DependentBitIntTypes(this_()),
930+
DependentSizedMatrixTypes(this_()),
932931
FunctionProtoTypes(this_(), FunctionProtoTypesLog2InitSize),
932+
DependentTypeOfExprTypes(this_()), DependentDecltypeTypes(this_()),
933933
TemplateSpecializationTypes(this_()),
934934
DependentTemplateSpecializationTypes(this_()), AutoTypes(this_()),
935-
SubstTemplateTemplateParmPacks(this_()),
935+
DependentBitIntTypes(this_()), SubstTemplateTemplateParmPacks(this_()),
936936
CanonTemplateTemplateParms(this_()), SourceMgr(SM), LangOpts(LOpts),
937937
NoSanitizeL(new NoSanitizeList(LangOpts.NoSanitizeFiles, SM)),
938938
XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles,

0 commit comments

Comments
 (0)