This change fixes a crash where a NULL fd was used to emit a diagnostic.
Instead of crashing, just avoid printing the declaration name when there's no
associated function declaration.
The crash was introduced in https://reviews.llvm.org/D97187.
Paths
| Differential D109402
Make 'align-mismatch' warning work without an associated function declaration ClosedPublic Authored by arphaman on Sep 7 2021, 4:20 PM.
Details Summary This change fixes a crash where a NULL fd was used to emit a diagnostic. The crash was introduced in https://reviews.llvm.org/D97187.
Diff Detail
Unit TestsFailed Event TimelineThis revision is now accepted and ready to land.Oct 29 2021, 11:41 AM This revision was landed with ongoing or failed builds.Oct 29 2021, 1:39 PM Closed by commit rGa43d1aa85256: [clang] Make 'align-mismatch' warning work without an associated function… (authored by arphaman). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 371212 clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/typedef_alignment_mismatch_warning.cpp
|