From 7484920cf5d95b21fa750229f8ce0d1624c918ec Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 11 Apr 2012 14:06:39 +0000 Subject: Compute hashes directly with hash_combine instead of taking a detour through FoldingSetNodeID. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154495 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/DebugLoc.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/VMCore') diff --git a/lib/VMCore/DebugLoc.cpp b/lib/VMCore/DebugLoc.cpp index 328244f..9013d28 100644 --- a/lib/VMCore/DebugLoc.cpp +++ b/lib/VMCore/DebugLoc.cpp @@ -173,10 +173,7 @@ DebugLoc DenseMapInfo::getTombstoneKey() { } unsigned DenseMapInfo::getHashValue(const DebugLoc &Key) { - FoldingSetNodeID ID; - ID.AddInteger(Key.LineCol); - ID.AddInteger(Key.ScopeIdx); - return ID.ComputeHash(); + return static_cast(hash_combine(Key.LineCol, Key.ScopeIdx)); } bool DenseMapInfo::isEqual(const DebugLoc &LHS, const DebugLoc &RHS) { -- cgit v1.1