diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h index 252b55163cb09..7765a4ab2ba98 100644 --- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h +++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h @@ -27,7 +27,7 @@ template <> struct DenseMapInfo> { return SmallVector({(sandboxir::Value *)-2}); } static unsigned getHashValue(const SmallVector &Vec) { - return hash_combine_range(Vec.begin(), Vec.end()); + return hash_combine_range(Vec); } static bool isEqual(const SmallVector &Vec1, const SmallVector &Vec2) { diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 0afd0141b525a..fdf9d540a6488 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -748,7 +748,7 @@ static std::error_code getStatus(HANDLE FileHandle, file_status &Result) { PathHash = (static_cast(Info.nFileIndexHigh) << 32ULL) | static_cast(Info.nFileIndexLow); } else { - PathHash = hash_combine_range(ntPath.begin(), ntPath.end()); + PathHash = hash_combine_range(ntPath); } Result = file_status(