Skip to content

Commit 606245a

Browse files
committed
[flang] Fixed build issue after 88f07a7
nullptr matches both against ::mlir::UnitAttr and ::mlir::TypeRange, so the following two candidates fit: static void mlir::omp::OrderedRegionOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, /*optional*/::mlir::UnitAttr simd) static void mlir::omp::OrderedRegionOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, /*optional*/bool simd = false)
1 parent 371883f commit 606245a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/OpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
841841
&opClauseList);
842842
} else if (blockDirective.v == llvm::omp::OMPD_ordered) {
843843
auto orderedOp = firOpBuilder.create<mlir::omp::OrderedRegionOp>(
844-
currentLocation, /*simd=*/nullptr);
844+
currentLocation, /*simd=*/false);
845845
createBodyOfOp<omp::OrderedRegionOp>(orderedOp, converter, currentLocation,
846846
eval);
847847
} else if (blockDirective.v == llvm::omp::OMPD_task) {

0 commit comments

Comments
 (0)