Skip to content

Commit 969d2d1

Browse files
[flang] Fix build after #155244 (#157248)
Fix build after #155244.
1 parent 2a413b6 commit 969d2d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang/lib/Optimizer/OpenMP/GenericLoopConversion.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,10 @@ class GenericLoopConversionPass
518518
loopOp));
519519
});
520520

521+
mlir::ConversionConfig config;
522+
config.allowPatternRollback = false;
521523
if (mlir::failed(mlir::applyFullConversion(getOperation(), target,
522-
std::move(patterns)))) {
524+
std::move(patterns), config))) {
523525
mlir::emitError(func.getLoc(), "error in converting `omp.loop` op");
524526
signalPassFailure();
525527
}

0 commit comments

Comments
 (0)