diff options
| author | Naveen Seth Hanig <naveen.hanig@outlook.com> | 2025-11-04 07:24:56 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-04 09:54:56 +0800 |
| commit | bc08e69959ecefecc7ea41b648a659aa19c458c8 (patch) | |
| tree | fcca72e077ec201a0f1eb6330ac6717ed90c2bbe /llvm/tools/llvm-diff/lib/DiffConsumer.h | |
| parent | a22d1c2225543aa9ae7882f6b1a97ee7b2c95574 (diff) | |
| download | llvm-bc08e69959ecefecc7ea41b648a659aa19c458c8.zip llvm-bc08e69959ecefecc7ea41b648a659aa19c458c8.tar.gz llvm-bc08e69959ecefecc7ea41b648a659aa19c458c8.tar.bz2 | |
[clang][modules] Fix crash in enum visibility lookup for C++20 header units (#166272)
Fixes #165445.
Fixes a crash when `ASTWriter::GenerateNameLookupTable` processes enum
constants from C++20 header units.
The special handling for enum constants, introduced in fccc6ee, doesn't
account for declarations whose owning module is a C++20 header unit. It
calls `isNamedModule()` on the result of
`getTopLevelOwningNamedModule()`, which returns null for header units,
causing a null pointer dereference.
Diffstat (limited to 'llvm/tools/llvm-diff/lib/DiffConsumer.h')
0 files changed, 0 insertions, 0 deletions
