Skip to content

Commit

Permalink
[AST] Initialized AutoTypeLocInfo::FoundDecl
Browse files Browse the repository at this point in the history
Msan complains if getFoundDecl called before it's set.
This looks like data class, so I see no reason to keep
the single field uninitialized.
  • Loading branch information
vitalybuka committed May 18, 2023
1 parent b96d063 commit 11fe931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/AST/TypeLoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ struct AutoTypeLocInfo : TypeSpecLocInfo {
NestedNameSpecifierLoc NestedNameSpec;
SourceLocation TemplateKWLoc;
SourceLocation ConceptNameLoc;
NamedDecl *FoundDecl;
NamedDecl *FoundDecl = nullptr;
SourceLocation LAngleLoc;
SourceLocation RAngleLoc;

Expand Down

0 comments on commit 11fe931

Please sign in to comment.