diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2022-10-05 12:09:56 +0200 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2022-10-05 15:23:15 +0200 |
commit | adab08ecf2bdeb84dc7d2009d4c0c13617db9c58 (patch) | |
tree | f8e22caec246480daf48d07cc9c1f96ceb2a2c06 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | 477e8e10f08eae8a9bbf75a46cf6e5d9d4f579f7 (diff) | |
download | llvm-adab08ecf2bdeb84dc7d2009d4c0c13617db9c58.zip llvm-adab08ecf2bdeb84dc7d2009d4c0c13617db9c58.tar.gz llvm-adab08ecf2bdeb84dc7d2009d4c0c13617db9c58.tar.bz2 |
[clang][Sema] Fix crash on invalid base destructor
LookupSpecialMember might fail, so changes the cast to cast_or_null.
Inside Sema, skip a particular base, similar to other cases, rather than
asserting on dtor showing up.
Other option would be to mark classes with invalid destructors as invalid, but
that seems like a lot more invasive and we do lose lots of diagnostics that
currently work on classes with broken members.
Differential Revision: https://reviews.llvm.org/D135254
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions