Skip to content

Commit 5c77aa0

Browse files
kazutakahirataaokblast
authored andcommitted
[ExecutionEngine] Call hash_combine_range with a range (NFC) (llvm#164755)
We can pass a range directly to hash_combine_range these days.
1 parent 0e1b6ba commit 5c77aa0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ template <typename ContainerIdT, typename ElementIdT> class WaitingOnGraph {
186186
SmallVector<ElementId> SortedElems(ContainerElems.begin(),
187187
ContainerElems.end());
188188
llvm::sort(SortedElems);
189-
Hash = hash_combine(
190-
Hash, Container,
191-
hash_combine_range(SortedElems.begin(), SortedElems.end()));
189+
Hash = hash_combine(Hash, Container, hash_combine_range(SortedElems));
192190
}
193191
return Hash;
194192
}

0 commit comments

Comments
 (0)