Skip to content

Commit e874691

Browse files
committed
review-comment
1 parent bae8252 commit e874691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ LogicalResult ExpandShapeOp::verify() {
23582358
ArrayRef<int64_t> resShape = getResult().getType().getShape();
23592359
for (auto [pos, shape] : llvm::enumerate(resShape)) {
23602360
if (!ShapedType::isDynamic(shape) && shape != staticOutputShapes[pos]) {
2361-
emitOpError("invalid output shape provided at pos ") << pos;
2361+
return emitOpError("invalid output shape provided at pos ") << pos;
23622362
}
23632363
}
23642364

0 commit comments

Comments
 (0)