diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h index 019e2d07e15cc..6d294e77861d1 100644 --- a/llvm/lib/IR/LLVMContextImpl.h +++ b/llvm/lib/IR/LLVMContextImpl.h @@ -365,8 +365,7 @@ template <> struct MDNodeKeyImpl { ExtraData == RHS->getRawExtraData(); } unsigned getHashValue() const { - return hash_combine(Tag, Name, File, Line, Scope, BaseType, SizeInBits, - AlignInBits, OffsetInBits, Flags, ExtraData); + return hash_combine(Tag, Name, File, Line, Scope, BaseType, Flags); } }; @@ -422,9 +421,8 @@ template <> struct MDNodeKeyImpl { Identifier == RHS->getIdentifier(); } unsigned getHashValue() const { - return hash_combine(Tag, Name, File, Line, Scope, BaseType, SizeInBits, - AlignInBits, OffsetInBits, Flags, Elements, RuntimeLang, - VTableHolder, TemplateParams, Identifier); + return hash_combine(Name, File, Line, BaseType, Scope, Elements, + TemplateParams); } }; @@ -518,10 +516,7 @@ template <> struct MDNodeKeyImpl { Variables == RHS->getRawVariables(); } unsigned getHashValue() const { - return hash_combine(Scope, Name, LinkageName, File, Line, Type, - IsLocalToUnit, IsDefinition, ScopeLine, ContainingType, - Virtuality, VirtualIndex, Flags, IsOptimized, - TemplateParams, Declaration, Variables); + return hash_combine(Name, Scope, File, Type, Line); } };