diff options
author | Bruno Ricci <riccibrun@gmail.com> | 2019-01-24 13:52:47 +0000 |
---|---|---|
committer | Bruno Ricci <riccibrun@gmail.com> | 2019-01-24 13:52:47 +0000 |
commit | 4eb701c0c6ae67a7bb6d853aa7735a457e014e0f (patch) | |
tree | cc2f1af470a606b1fe7a9a4eb5547d5714418c8d /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | 30b206b5daf48f9cebb685c765a3d60473cc34aa (diff) | |
download | llvm-4eb701c0c6ae67a7bb6d853aa7735a457e014e0f.zip llvm-4eb701c0c6ae67a7bb6d853aa7735a457e014e0f.tar.gz llvm-4eb701c0c6ae67a7bb6d853aa7735a457e014e0f.tar.bz2 |
[Sema] Don't crash when recovering from a misspelled pseudo destructor call to an incomplete type.
When attempting to correct a misspelled pseudo destructor call as in:
struct Foo;
void foo(Foo *p) {
p.~Foo();
}
a call is made in canRecoverDotPseudoDestructorCallsOnPointerObjects
to LookupDestructor without checking that the record has a definition.
This causes an assertion later in LookupSpecialMember which assumes that
the record has a definition.
Patch By Roman Zhikharevich!
Differential Revision: https://reviews.llvm.org/D57111
Reviewed By: riccibruno
llvm-svn: 352047
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions