diff options
| author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2023-01-25 10:47:21 -0800 |
|---|---|---|
| committer | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2023-01-25 10:49:04 -0800 |
| commit | 6ec446ddcee33777a8420c227374f7b422a7df1b (patch) | |
| tree | 06e7ba0781c9839ff4ac7945edabcb217bf67854 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 5a4a8eb2b63ae3595714144c8eacd9d7156c9088 (diff) | |
[Clang] Add sanity check in Sema::getDestructorName to prevent nullptr dereference
Currently in Sema::getDestructorName we call SS.getScopeRep()->getPrefix() but
SS.getScopeRep() can return nullptr because LookupInNestedNameSpec(...) called a
little before can invalidate SS.
This fixes: https://github.com/llvm/llvm-project/issues/59446
Differential Revision: https://reviews.llvm.org/D140598
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
