Author: Kazu Hirata Date: 2023-10-03T11:08:24-07:00 New Revision: f659ef43cd4e72fe84a1fa50966ac78ca6675428
URL: https://github.com/llvm/llvm-project/commit/f659ef43cd4e72fe84a1fa50966ac78ca6675428 DIFF: https://github.com/llvm/llvm-project/commit/f659ef43cd4e72fe84a1fa50966ac78ca6675428.diff LOG: [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] Added: Modified: clang/lib/AST/ASTContext.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index cccff479c2c1ce0..cdc3d62bca00873 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -927,12 +927,12 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM, : ConstantArrayTypes(this_(), ConstantArrayTypesLog2InitSize), DependentSizedArrayTypes(this_()), DependentSizedExtVectorTypes(this_()), DependentAddressSpaceTypes(this_()), DependentVectorTypes(this_()), - DependentSizedMatrixTypes(this_()), DependentTypeOfExprTypes(this_()), - DependentDecltypeTypes(this_()), DependentBitIntTypes(this_()), + DependentSizedMatrixTypes(this_()), FunctionProtoTypes(this_(), FunctionProtoTypesLog2InitSize), + DependentTypeOfExprTypes(this_()), DependentDecltypeTypes(this_()), TemplateSpecializationTypes(this_()), DependentTemplateSpecializationTypes(this_()), AutoTypes(this_()), - SubstTemplateTemplateParmPacks(this_()), + DependentBitIntTypes(this_()), SubstTemplateTemplateParmPacks(this_()), CanonTemplateTemplateParms(this_()), SourceMgr(SM), LangOpts(LOpts), NoSanitizeL(new NoSanitizeList(LangOpts.NoSanitizeFiles, SM)), XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits