Skip to content

Commit c24a538

Browse files
committed
[mlir][emitc] Fixed the check
Fixed the check that the yielded value is defined within expression.
1 parent 604fff1 commit c24a538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/EmitC/IR/EmitC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ LogicalResult ExpressionOp::verify() {
409409
if (!rootOp)
410410
return emitOpError("yielded value has no defining op");
411411

412-
if (!isa<emitc::ExpressionOp>(rootOp->getParentOp()))
412+
if (rootOp->getParentOp() != getOperation())
413413
return emitOpError("yielded value not defined within expression");
414414

415415
Type yieldType = yieldResult.getType();

0 commit comments

Comments
 (0)