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 bae8252 commit e874691Copy full SHA for e874691
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
@@ -2358,7 +2358,7 @@ LogicalResult ExpandShapeOp::verify() {
2358
ArrayRef<int64_t> resShape = getResult().getType().getShape();
2359
for (auto [pos, shape] : llvm::enumerate(resShape)) {
2360
if (!ShapedType::isDynamic(shape) && shape != staticOutputShapes[pos]) {
2361
- emitOpError("invalid output shape provided at pos ") << pos;
+ return emitOpError("invalid output shape provided at pos ") << pos;
2362
}
2363
2364
0 commit comments