Skip to content

Commit 956fca2

Browse files
author
git apple-llvm automerger
committed
Merge commit '9e650349bfdc' from llvm.org/main into next
2 parents d2468f7 + 9e65034 commit 956fca2

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)