Skip to content

Commit bf43a13

Browse files
authored
[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.
1 parent e9a4f2c commit bf43a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ class DeclaratorDecl : public ValueDecl {
737737
// qualifier, to be used for the (uncommon) case of out-of-line declarations
738738
// and constrained function decls.
739739
struct ExtInfo : public QualifierInfo {
740-
TypeSourceInfo *TInfo;
740+
TypeSourceInfo *TInfo = nullptr;
741741
Expr *TrailingRequiresClause = nullptr;
742742
};
743743

0 commit comments

Comments
 (0)