This was causes by getValueOfValueInit unconditionally calling
getScalarTypeKind on the member type, which would then trigger an
assertions since arrays are not scalar type.
This fixes llvm#63285
Paths
| Differential D152802
[clang-tidy] Fix crash in `modernize-use-default-member-init` ClosedPublic Authored by AMS21 on Jun 13 2023, 5:11 AM.
Details Summary This was causes by getValueOfValueInit unconditionally calling This fixes llvm#63285
Diff Detail
Event Timeline
Comment Actions Maybe we should still support arrays.... in some way
This revision is now accepted and ready to land.Jun 13 2023, 10:24 AM Closed by commit rG311091e2b007: [clang-tidy] Fix crash in `modernize-use-default-member-init` (authored by AMS21, committed by PiotrZSL). · Explain WhyJun 13 2023, 11:14 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 530999 clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/modernize/use-default-member-init-assignment.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize/use-default-member-init.cpp
|
This should do a trick.