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 604fff1 commit c24a538Copy full SHA for c24a538
mlir/lib/Dialect/EmitC/IR/EmitC.cpp
@@ -409,7 +409,7 @@ LogicalResult ExpressionOp::verify() {
409
if (!rootOp)
410
return emitOpError("yielded value has no defining op");
411
412
- if (!isa<emitc::ExpressionOp>(rootOp->getParentOp()))
+ if (rootOp->getParentOp() != getOperation())
413
return emitOpError("yielded value not defined within expression");
414
415
Type yieldType = yieldResult.getType();
0 commit comments