Author: Boaz Brickner Date: 2024-11-05T08:57:52+01:00 New Revision: bf43a138f0a6220cd043a376200bd739cacb25e3
URL: https://github.com/llvm/llvm-project/commit/bf43a138f0a6220cd043a376200bd739cacb25e3 DIFF: https://github.com/llvm/llvm-project/commit/bf43a138f0a6220cd043a376200bd739cacb25e3.diff LOG: [clang] Initialize DeclaratorDecl.ExtInfo.TInfo to null (#114198) I believe this has no effect current behavior but would make code safer in case we forget to initialize this. Added: Modified: clang/include/clang/AST/Decl.h Removed: ################################################################################ diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 7ff35d73df5997..8c39ef3d5a9fa6 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -737,7 +737,7 @@ class DeclaratorDecl : public ValueDecl { // qualifier, to be used for the (uncommon) case of out-of-line declarations // and constrained function decls. struct ExtInfo : public QualifierInfo { - TypeSourceInfo *TInfo; + TypeSourceInfo *TInfo = nullptr; Expr *TrailingRequiresClause = nullptr; }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits