diff --git a/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp index 169d49f64eb5c0..b17fbd63e9fd4d 100644 --- a/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp @@ -76,7 +76,7 @@ struct llvm::pdb::SymbolDenseMapInfo { return Tombstone; } static unsigned getHashValue(const CVSymbol &Val) { - return xxHash64(Val.RecordData); + return xxh3_64bits(Val.RecordData); } static bool isEqual(const CVSymbol &LHS, const CVSymbol &RHS) { return LHS.RecordData == RHS.RecordData; diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp index 3ed2808bc304eb..cd30b56be7cd85 100644 --- a/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp @@ -340,7 +340,7 @@ Error PDBFileBuilder::commit(StringRef Filename, codeview::GUID *Guid) { if (Info->hashPDBContentsToGUID()) { // Compute a hash of all sections of the output file. uint64_t Digest = - xxHash64({Buffer.getBufferStart(), Buffer.getBufferEnd()}); + xxh3_64bits({Buffer.getBufferStart(), Buffer.getBufferEnd()}); H->Age = 1;