diff --git a/clang/lib/Analysis/IssueHash.cpp b/clang/lib/Analysis/IssueHash.cpp index 94816747668da9..39101a8a75465d 100644 --- a/clang/lib/Analysis/IssueHash.cpp +++ b/clang/lib/Analysis/IssueHash.cpp @@ -97,6 +97,8 @@ static std::string GetEnclosingDeclContextSignature(const Decl *D) { case Decl::Record: case Decl::CXXRecord: case Decl::Enum: + case Decl::Field: + case Decl::Var: DeclName = ND->getQualifiedNameAsString(); break; case Decl::CXXConstructor: