[flang-commits] [flang] [flang][openacc] Support allocatable and pointer array in private recipe (PR #68422)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Fri Oct 6 09:36:24 PDT 2023


================
@@ -381,7 +394,8 @@ static void genPrivateLikeInitRegion(mlir::OpBuilder &builder, RecipeOp recipe,
       }
     }
   } else if (auto boxTy = mlir::dyn_cast_or_null<fir::BaseBoxType>(ty)) {
-    if (!mlir::isa<fir::SequenceType>(boxTy.getEleTy()))
+    mlir::Type innerTy = extractSequenceType(boxTy);
+    if (!mlir::isa<fir::SequenceType>(innerTy))
----------------
vzakhari wrote:

nit: should `(!innerTy)` be enough?

https://github.com/llvm/llvm-project/pull/68422


More information about the flang-commits mailing list