Skip to content

Commit 477f9f6

Browse files
[llvm] Call hash_combine_range with ranges (NFC) (#143225)
We can now invoke hash_combine_range with a range.
1 parent d953ca5 commit 477f9f6

File tree

2 files changed

+2
-2
lines changed
  • llvm

2 files changed

+2
-2
lines changed

llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ template <> struct DenseMapInfo<SmallVector<sandboxir::Value *>> {
2727
return SmallVector<sandboxir::Value *>({(sandboxir::Value *)-2});
2828
}
2929
static unsigned getHashValue(const SmallVector<sandboxir::Value *> &Vec) {
30-
return hash_combine_range(Vec.begin(), Vec.end());
30+
return hash_combine_range(Vec);
3131
}
3232
static bool isEqual(const SmallVector<sandboxir::Value *> &Vec1,
3333
const SmallVector<sandboxir::Value *> &Vec2) {

llvm/lib/Support/Windows/Path.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static std::error_code getStatus(HANDLE FileHandle, file_status &Result) {
748748
PathHash = (static_cast<uint64_t>(Info.nFileIndexHigh) << 32ULL) |
749749
static_cast<uint64_t>(Info.nFileIndexLow);
750750
} else {
751-
PathHash = hash_combine_range(ntPath.begin(), ntPath.end());
751+
PathHash = hash_combine_range(ntPath);
752752
}
753753

754754
Result = file_status(

0 commit comments

Comments
 (0)