[llvm] f7587a9 - Follow-up on https://github.com/llvm/llvm-project/commit/88303693ce97cf842f0714068c2cae44cd6515e1
Kirill Bobyrev via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 21 11:14:25 PDT 2021
Author: Kirill Bobyrev
Date: 2021-10-21T20:13:37+02:00
New Revision: f7587a9d38f42ef80965444701aed63af0bcbdf7
URL: https://github.com/llvm/llvm-project/commit/f7587a9d38f42ef80965444701aed63af0bcbdf7
DIFF: https://github.com/llvm/llvm-project/commit/f7587a9d38f42ef80965444701aed63af0bcbdf7.diff
LOG: Follow-up on https://github.com/llvm/llvm-project/commit/88303693ce97cf842f0714068c2cae44cd6515e1
Use hash code instead of unsigned for the hash return value.
Added:
Modified:
llvm/include/llvm/Support/FileSystem/UniqueID.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/FileSystem/UniqueID.h b/llvm/include/llvm/Support/FileSystem/UniqueID.h
index f3dfb367401a..0d5367236e8d 100644
--- a/llvm/include/llvm/Support/FileSystem/UniqueID.h
+++ b/llvm/include/llvm/Support/FileSystem/UniqueID.h
@@ -64,7 +64,7 @@ template <> struct DenseMapInfo<llvm::sys::fs::UniqueID> {
return {TombstoneKey.first, TombstoneKey.second};
}
- static unsigned getHashValue(const llvm::sys::fs::UniqueID &Tag) {
+ static hash_code getHashValue(const llvm::sys::fs::UniqueID &Tag) {
return hash_value(std::make_pair(Tag.getDevice(), Tag.getFile()));
}
More information about the llvm-commits
mailing list