[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
Loading
Please sign in to comment