We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86953c commit a8644b3Copy full SHA for a8644b3
bolt/lib/Profile/YAMLProfileWriter.cpp
@@ -133,12 +133,9 @@ std::vector<yaml::bolt::PseudoProbeInfo>
133
YAMLProfileWriter::convertNodeProbes(NodeIdToProbes &NodeProbes) {
134
struct BlockProbeInfoHasher {
135
size_t operator()(const yaml::bolt::PseudoProbeInfo &BPI) const {
136
- auto HashCombine = [](auto &Range) {
137
- return llvm::hash_combine_range(Range.begin(), Range.end());
138
- };
139
- return llvm::hash_combine(HashCombine(BPI.BlockProbes),
140
- HashCombine(BPI.CallProbes),
141
- 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));
142
}
143
};
144
0 commit comments