The call to getTypeSizeInChars() is replaced with
getTypeSizeInCharsIfKnown(), which does not crash on forward declared
structs. This only affects printing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D113570
[clang] Do not crash in APValue::prettyPrint() on forward-decl structs. ClosedPublic Authored by adamcz on Nov 10 2021, 7:30 AM.
Details Summary The call to getTypeSizeInChars() is replaced with
Diff Detail
Event TimelineHerald added subscribers: usaxena95, kadircet, arphaman. · View Herald TranscriptNov 10 2021, 7:30 AM Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 10 2021, 7:30 AM This revision is now accepted and ready to land.Nov 10 2021, 7:44 AM Closed by commit rG7a2b1bdb4c8a: [clang] Do not crash in APValue::prettyPrint() on forward-decl structs. (authored by adamcz). · Explain WhyNov 10 2021, 8:18 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 386160 clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/lib/AST/APValue.cpp
|