Skip to content

Commit 59c25e7

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [mlir] Use llvm::make_first_range (NFC) (#135900)
2 parents e56d4af + 52e3f3d commit 59c25e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Bytecode/Reader/BytecodeReader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,8 +1984,7 @@ LogicalResult BytecodeReader::Impl::sortUseListOrder(Value value) {
19841984
// If the bytecode file did not contain any custom use-list order, it means
19851985
// that the order was descending useID. Hence, shuffle by the first index
19861986
// of the `currentOrder` pair.
1987-
SmallVector<unsigned> shuffle = SmallVector<unsigned>(
1988-
llvm::map_range(currentOrder, [&](auto item) { return item.first; }));
1987+
SmallVector<unsigned> shuffle(llvm::make_first_range(currentOrder));
19891988
value.shuffleUseList(shuffle);
19901989
return success();
19911990
}

0 commit comments

Comments
 (0)