forked from OSchip/llvm-project
[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:
parent
de2b543505
commit
3a07280290
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue