Skip to content

Commit 9e65034

Browse files
[mlir] Construct SmallVector with ArrayRef (NFC) (#135899)
1 parent dfb5b6e commit 9e65034

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Dialect/Tosa/IR/TosaOps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ LogicalResult tosa::ArgMaxOp::verify() {
483483

484484
const ArrayRef<int64_t> inputShape = inputType.getShape();
485485
const ArrayRef<int64_t> outputShape = resultType.getShape();
486-
llvm::SmallVector<int64_t> expectedOutputShape(inputShape.begin(),
487-
inputShape.end());
486+
llvm::SmallVector<int64_t> expectedOutputShape(inputShape);
488487
expectedOutputShape.erase(expectedOutputShape.begin() + axis);
489488
if (failed(verifyCompatibleShape(expectedOutputShape, outputShape)))
490489
return emitOpError("expected output shape '")

0 commit comments

Comments
 (0)