[analyzer] Fix wrong annotation of PointerToMemberData

Unfortunately I don't have a reproducer for this.
Reported by @mikaelholmen!

Differential Revision: https://reviews.llvm.org/D126198
This commit is contained in:
Balazs Benics 2022-06-01 16:12:54 +02:00
parent de2b543505
commit 3a07280290
1 changed files with 2 additions and 4 deletions

View File

@ -90,9 +90,7 @@ class PointerToMemberData : public llvm::FoldingSetNode {
public:
PointerToMemberData(const NamedDecl *D,
llvm::ImmutableList<const CXXBaseSpecifier *> L)
: D(D), L(L) {
assert(D);
}
: D(D), L(L) {}
using iterator = llvm::ImmutableList<const CXXBaseSpecifier *>::iterator;
@ -104,7 +102,7 @@ public:
void Profile(llvm::FoldingSetNodeID &ID) { Profile(ID, D, L); }
LLVM_ATTRIBUTE_RETURNS_NONNULL
/// It might return null.
const NamedDecl *getDeclaratorDecl() const { return D; }
llvm::ImmutableList<const CXXBaseSpecifier *> getCXXBaseList() const {