diff --git a/llvm/lib/Support/StringMap.cpp b/llvm/lib/Support/StringMap.cpp --- a/llvm/lib/Support/StringMap.cpp +++ b/llvm/lib/Support/StringMap.cpp @@ -85,7 +85,7 @@ // Hash table unallocated so far? if (NumBuckets == 0) init(16); - unsigned FullHashValue = xxHash64(Name); + unsigned FullHashValue = xxh3_64bits(Name); if (shouldReverseIterate()) FullHashValue = ~FullHashValue; unsigned BucketNo = FullHashValue & (NumBuckets - 1); @@ -142,7 +142,7 @@ int StringMapImpl::FindKey(StringRef Key) const { if (NumBuckets == 0) return -1; // Really empty table? - unsigned FullHashValue = xxHash64(Key); + unsigned FullHashValue = xxh3_64bits(Key); if (shouldReverseIterate()) FullHashValue = ~FullHashValue; unsigned BucketNo = FullHashValue & (NumBuckets - 1);