aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorKrystian Stasiowski <sdkrystian@gmail.com>2024-02-26 14:01:48 -0500
committerGitHub <noreply@github.com>2024-02-26 14:01:48 -0500
commitce4740d3e31e936aa93c115f63bf223c74c9dc20 (patch)
tree4209ea336736f38a40786e18428aea1e758c76d4 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent5cdb8c0c8854d08ac7ca131ce3e8d78a32eb6716 (diff)
downloadllvm-ce4740d3e31e936aa93c115f63bf223c74c9dc20.zip
llvm-ce4740d3e31e936aa93c115f63bf223c74c9dc20.tar.gz
llvm-ce4740d3e31e936aa93c115f63bf223c74c9dc20.tar.bz2
[Clang][Sema] Fix crash when MS dependent base class lookup occurs in an incomplete context (#83024)
When compiling the following with `-fms-compatibility`: ``` template<typename T> struct C; // Test lookup with incomplete lookup context template<typename T> auto C<T>::f() -> decltype(x) { } ``` An assert fails because `CXXRecordDecl::hasAnyDependentBases` is called on an incomplete class. This patch ensures we don't perform unqualified lookup into dependent base classes when the lookup context is incomplete.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions