We can only use ASTContext::getTypeInfo for complete types.
This fixes the following bugzilla issue: https://bugs.llvm.org/show_bug.cgi?id=50313.
Paths
| Differential D102569
[clang-tidy] Fix altera-struct-pack-align crash for struct fields with incomplete type ClosedPublic Authored by jubnzv on May 15 2021, 10:50 PM.
Details Summary We can only use ASTContext::getTypeInfo for complete types. This fixes the following bugzilla issue: https://bugs.llvm.org/show_bug.cgi?id=50313.
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 17 2021, 5:25 AM Closed by commit rGab92a4c26f54: [clang-tidy] Fix altera-struct-pack-align crash for struct fields with… (authored by jubnzv). · Explain WhyMay 17 2021, 6:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 345672 clang-tools-extra/clang-tidy/altera/StructPackAlignCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/altera-struct-pack-align-no-crash.cpp
|