aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/SampleProfReader.cpp
diff options
context:
space:
mode:
authorAdam Czachorowski <adamcz@google.com>2020-08-26 16:20:01 +0200
committerAdam Czachorowski <adamcz@google.com>2020-08-26 19:29:30 +0200
commiteed0af6179ca4fe9e60121e0829ed8d3849b1ce5 (patch)
treea1a1293edafd2baaf0e2fea4ec3eb8400e035572 /llvm/lib/ProfileData/SampleProfReader.cpp
parent95848ea101274b8bd774c63bad55f21a08080705 (diff)
downloadllvm-eed0af6179ca4fe9e60121e0829ed8d3849b1ce5.zip
llvm-eed0af6179ca4fe9e60121e0829ed8d3849b1ce5.tar.gz
llvm-eed0af6179ca4fe9e60121e0829ed8d3849b1ce5.tar.bz2
[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
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfReader.cpp')
0 files changed, 0 insertions, 0 deletions