llvm-project/clang/lib
Adam Czachorowski eed0af6179 [clang] Exclude invalid destructors from lookups.
This fixes a crash when declaring a destructor with a wrong name, then
writing result to pch file and loading it again. The PCH storage uses
DeclarationNameKey as key and it is the same key for both the invalid
destructor and the implicit one that was created because the other one
was invalid. When querying for the Foo::~Foo we end up getting
Foo::~Bar, which is then rejected and we end up with nullptr in
CXXRecordDecl::GetDestructor().

Fixes https://bugs.llvm.org/show_bug.cgi?id=47270

Differential Revision: https://reviews.llvm.org/D86624
2020-08-26 19:29:30 +02:00
..
ARCMigrate With MSVC, file needs to be compiled with /BIGOBJ 2020-07-17 09:43:06 -07:00
AST [clang] Exclude invalid destructors from lookups. 2020-08-26 19:29:30 +02:00
ASTMatchers [clang] Add a matcher for template template parameters. 2020-08-11 16:01:36 +01:00
Analysis [AST] add parenthesis locations for IfStmt and SwitchStmt 2020-08-10 19:19:51 -07:00
Basic [SystemZ][z/OS] Add z/OS Target and define macros 2020-08-25 15:51:59 -04:00
CodeGen Revert "[Coverage] Enable emitting gap area between macros" 2020-08-25 15:28:42 -07:00
CrossTU [analyzer] Add CTUImportCppThreshold for C++ files 2020-07-09 15:36:33 +02:00
DirectoryWatcher [DirectoryWatcher] Do not use FSEvents on non-macOS platforms 2020-04-23 10:22:28 -07:00
Driver [SystemZ/ZOS] Add header file to encapsulate use of <sysexits.h> 2020-08-26 12:44:30 -04:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] use spaces for alignment of binary/ternary expressions with UT_AlignWithSpaces 2020-08-11 14:56:26 +02:00
Frontend [LiveDebugValues] Add switches for using instr-ref variable locations 2020-08-25 14:58:48 +01:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [X86] Enable constexpr on ROTL/ROTR intrinsics (PR31446) 2020-08-23 16:11:58 +01:00
Index [clangd] Fix crash-bug in preamble indexing when using modules. 2020-08-20 14:19:52 +02:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex [Modules] Improve error message when cannot find parent module for submodule definition. 2020-08-25 16:31:27 -07:00
Parse Replace setter named 'getAsOpaqueInt' with a real getter. 2020-08-16 16:38:33 -07:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema PR37556: Don't diagnose conflicts between instantiated unqualified 2020-08-24 23:26:15 -07:00
Serialization [OPENMP]Fix PR47158, case 3: allow devic_typein nested declare target region. 2020-08-24 09:58:37 -04:00
StaticAnalyzer [analyzer] Add modeling of assignment operator in smart ptr 2020-08-26 11:22:55 +02:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [SyntaxTree] Migrate `ParamatersAndQualifiers` to use the new List API 2020-08-26 16:46:19 +00:00
CMakeLists.txt [index-while-building] PathIndexer 2020-08-19 11:25:21 -07:00