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 9e65034 commit 52e3f3dCopy full SHA for 52e3f3d
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