Index: flang/lib/Lower/OpenMP.cpp =================================================================== --- flang/lib/Lower/OpenMP.cpp +++ flang/lib/Lower/OpenMP.cpp @@ -841,7 +841,7 @@ &opClauseList); } else if (blockDirective.v == llvm::omp::OMPD_ordered) { auto orderedOp = firOpBuilder.create( - currentLocation, /*simd=*/nullptr); + currentLocation, /*simd=*/false); createBodyOfOp(orderedOp, converter, currentLocation, eval); } else if (blockDirective.v == llvm::omp::OMPD_task) {