diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2022-10-05 22:48:03 +0300 |
---|---|---|
committer | Slava Zakharin <szakharin@nvidia.com> | 2022-10-05 22:59:31 +0300 |
commit | 606245ad542491400a5475c796df86a99f5c8c12 (patch) | |
tree | 8075def8fed6302836af0fe1e6002579bc6326fa /flang | |
parent | 371883f46dc23f8464cbf578e2d12a4f92e61917 (diff) |
[flang] Fixed build issue after 88f07a736bbc3f0062d7d8f4032f0b54aff5c018
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)
Diffstat (limited to 'flang')
-rw-r--r-- | flang/lib/Lower/OpenMP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp index 31709d68ee8a..82c04ab366b8 100644 --- a/flang/lib/Lower/OpenMP.cpp +++ b/flang/lib/Lower/OpenMP.cpp @@ -841,7 +841,7 @@ genOMP(Fortran::lower::AbstractConverter &converter, &opClauseList); } else if (blockDirective.v == llvm::omp::OMPD_ordered) { auto orderedOp = firOpBuilder.create<mlir::omp::OrderedRegionOp>( - currentLocation, /*simd=*/nullptr); + currentLocation, /*simd=*/false); createBodyOfOp<omp::OrderedRegionOp>(orderedOp, converter, currentLocation, eval); } else if (blockDirective.v == llvm::omp::OMPD_task) { |