llvm-project/clang/test
Bruno Ricci 4eb701c0c6 [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
2019-01-24 13:52:47 +00:00
..
ARCMT
AST [Sema] Fix Modified Type in address_space AttributedType 2019-01-24 00:11:35 +00:00
ASTMerge
Analysis [analyzer] Insert notes in RetainCountChecker where our dynamic cast modeling assumes 'null' output 2019-01-22 19:51:00 +00:00
CXX Mark the lambda function pointer conversion operator as noexcept. 2019-01-21 16:25:08 +00:00
CodeCompletion [CodeComplete] [clangd] Fix crash on ValueDecl with a null type 2019-01-24 10:41:43 +00:00
CodeGen Reland r345009 "[DebugInfo] Generate debug information for labels." 2019-01-24 05:34:29 +00:00
CodeGenCUDA [CUDA] Treat extern global variable shadows same as regular extern vars. 2018-12-22 01:11:09 +00:00
CodeGenCXX [Sanitizers] UBSan unreachable incompatible with ASan in the presence of `noreturn` calls 2019-01-24 01:06:19 +00:00
CodeGenCoroutines Revert "[CodeGenCXX] Treat 'this' as noalias in constructors" 2018-10-15 15:43:00 +00:00
CodeGenObjC [clang][slh] add Clang attr no_speculative_load_hardening 2019-01-18 17:20:46 +00:00
CodeGenObjCXX [CodeGen] Replace '@' characters in block descriptors' symbol names with 2018-12-29 17:28:30 +00:00
CodeGenOpenCL [AMDGPU] Separate feature dot-insts 2019-01-10 03:25:47 +00:00
CodeGenOpenCLCXX [OpenCL] Allow address spaces as method qualifiers. 2019-01-21 16:01:38 +00:00
Coverage [Frontend] Delete -print-decl-contexts 2018-10-03 03:50:44 +00:00
CoverageMapping [Coverage] Specify the Itanium ABI triple for a C++ test 2018-11-28 20:51:09 +00:00
Driver [mips] Add '-mrelax-pic-calls', '-mno-relax-pic-calls' 2019-01-18 19:54:51 +00:00
FixIt Introduce the _Clang scoped attribute token. 2018-11-09 17:19:45 +00:00
Format
Frontend [Fixed Point Arithmetic] Fixed Point Addition Constant Expression Evaluation 2019-01-18 21:04:25 +00:00
Headers Recommit r351160 "[X86] Make _xgetbv/_xsetbv on non-windows platforms" 2019-01-16 22:56:25 +00:00
Import [ASTImporter] Fix importing OperatorDelete from CXXConstructorDecl 2019-01-22 17:59:45 +00:00
Index [Sema] Fix Modified Type in address_space AttributedType 2019-01-24 00:11:35 +00:00
Integration
Layout
Lexer Implementation Feature Test Macros for P0722R3 2019-01-11 17:09:22 +00:00
Misc Emit !callback metadata and introduce the callback attribute 2019-01-19 05:36:54 +00:00
Modules CodeGen: fix autolink emission on ELF 2019-01-05 19:27:12 +00:00
OpenMP Emit !callback metadata and introduce the callback attribute 2019-01-19 05:36:54 +00:00
PCH Reuse code from CGDebugInfo::getOrCreateFile() when creating the file 2018-12-11 16:58:43 +00:00
Parser Add two new pragmas for controlling software pipelining optimizations. 2019-01-04 17:20:00 +00:00
Preprocessor [MSVC Compat] Fix typo correction for inclusion directives. 2019-01-15 20:08:23 +00:00
Profile
Refactor
Rewriter
Sema Emit !callback metadata and introduce the callback attribute 2019-01-19 05:36:54 +00:00
SemaCUDA [CUDA][HIP] Fix ShouldDeleteSpecialMember for inherited constructors 2018-10-09 15:53:14 +00:00
SemaCXX [Sema] Don't crash when recovering from a misspelled pseudo destructor call to an incomplete type. 2019-01-24 13:52:47 +00:00
SemaObjC [ObjC] Follow-up r350768 and allow the use of unavailable methods that are 2019-01-17 18:12:45 +00:00
SemaObjCXX [Sema][ObjC] Check whether a DelayedDiagnosticPool has been pushed 2019-01-23 00:55:48 +00:00
SemaOpenCL OpenCL: Improve vector printf warnings 2018-12-01 22:16:27 +00:00
SemaOpenCLCXX [OpenCL] Allow address spaces as method qualifiers. 2019-01-21 16:01:38 +00:00
SemaTemplate Remember to instantiate explicit template argument lists in a friend 2019-01-11 01:59:33 +00:00
TableGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Templight
Tooling [test] Pass -ccc-install-dir in mac compilation db test 2019-01-21 17:05:43 +00:00
Unit
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00
lit.site.cfg.py.in Import lit.llvm after rC341132 2018-08-31 00:24:36 +00:00
make_test_dirs.pl