Skip to content

Commit 12b1ed2

Browse files
authored
[Clang] Add non static data member initializer for BindingDecl member Decomp (llvm#134969)
Static analysis flagged BindingDecl Decomp member as not being initialized during construction or by any other member function. Fix is add a default initializer for it like the other member Binding.
1 parent 639ebbf commit 12b1ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/DeclCXX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4166,7 +4166,7 @@ class StaticAssertDecl : public Decl {
41664166
/// DecompositionDecl of type 'int (&)[3]'.
41674167
class BindingDecl : public ValueDecl {
41684168
/// The declaration that this binding binds to part of.
4169-
ValueDecl *Decomp;
4169+
ValueDecl *Decomp = nullptr;
41704170
/// The binding represented by this declaration. References to this
41714171
/// declaration are effectively equivalent to this expression (except
41724172
/// that it is only evaluated once at the point of declaration of the

0 commit comments

Comments
 (0)