https://github.com/bricknerb created https://github.com/llvm/llvm-project/pull/114198
I believe this has no effect current behavior but would make code safer in case we forget to initialize this. >From 647406c00b1b60b23c3fd4314a1e5b4baeb9e574 Mon Sep 17 00:00:00 2001 From: Boaz Brickner <brick...@google.com> Date: Wed, 30 Oct 2024 10:36:57 +0100 Subject: [PATCH] [clang] Initialize DeclaratorDecl.ExtInfo.TInfo to null I believe this has no effect current behavior but would make code safer in case we forget to initialize this. --- clang/include/clang/AST/Decl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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