[BOLT] Call hash_combine_range with ranges (NFC) (#136524)
diff --git a/bolt/lib/Profile/YAMLProfileWriter.cpp b/bolt/lib/Profile/YAMLProfileWriter.cpp
index e394858..2bdc7b6 100644
--- a/bolt/lib/Profile/YAMLProfileWriter.cpp
+++ b/bolt/lib/Profile/YAMLProfileWriter.cpp
@@ -133,12 +133,9 @@
YAMLProfileWriter::convertNodeProbes(NodeIdToProbes &NodeProbes) {
struct BlockProbeInfoHasher {
size_t operator()(const yaml::bolt::PseudoProbeInfo &BPI) const {
- auto HashCombine = [](auto &Range) {
- return llvm::hash_combine_range(Range.begin(), Range.end());
- };
- return llvm::hash_combine(HashCombine(BPI.BlockProbes),
- HashCombine(BPI.CallProbes),
- HashCombine(BPI.IndCallProbes));
+ return llvm::hash_combine(llvm::hash_combine_range(BPI.BlockProbes),
+ llvm::hash_combine_range(BPI.CallProbes),
+ llvm::hash_combine_range(BPI.IndCallProbes));
}
};