Skip to content

Commit 9806124

Browse files
committed
Fix One More Comment
1 parent 357cb5d commit 9806124

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ FailureOr<scf::LoopNest>
2727
mlir::scf::parallelForToNestedFors(RewriterBase &rewriter,
2828
scf::ParallelOp parallelOp) {
2929

30-
if (!parallelOp.getResults().empty()) {
31-
parallelOp->emitError("Currently scf.parallel to scf.for conversion "
32-
"doesn't support scf.parallel with results.");
33-
return failure();
34-
}
30+
if (!parallelOp.getResults().empty())
31+
return rewriter.notifyMatchFailure(
32+
parallelOp, "Currently scf.parallel to scf.for conversion doesn't "
33+
"support scf.parallel with results.");
3534

3635
rewriter.setInsertionPoint(parallelOp);
3736

0 commit comments

Comments
 (0)