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.
2 parents 956fca2 + 52e3f3d commit c66650eCopy full SHA for c66650e
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
@@ -1984,8 +1984,7 @@ LogicalResult BytecodeReader::Impl::sortUseListOrder(Value value) {
1984
// If the bytecode file did not contain any custom use-list order, it means
1985
// that the order was descending useID. Hence, shuffle by the first index
1986
// of the `currentOrder` pair.
1987
- SmallVector<unsigned> shuffle = SmallVector<unsigned>(
1988
- llvm::map_range(currentOrder, [&](auto item) { return item.first; }));
+ SmallVector<unsigned> shuffle(llvm::make_first_range(currentOrder));
1989
value.shuffleUseList(shuffle);
1990
return success();
1991
}
0 commit comments