It can be used to avoid passing the begin and the end of a range.
This makes the code shorter and it is consistent with another
wrappers we already have.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/IR/AsmWriter.cpp | ||
---|---|---|
231–233 | I was not aware of llvm::less_*(), thanks! |
This can be further simplified to llvm::is_sorted(lll, llvm::less_second())