[flang-commits] [flang] [Flang][OpenMP] - When mapping a `fir.boxchar`, map the underlying data pointer as a member (PR #141715)

Pranav Bhandarkar via flang-commits flang-commits at lists.llvm.org
Fri Jun 6 08:55:56 PDT 2025


================
@@ -285,6 +285,9 @@ bool hasDynamicSize(mlir::Type t) {
     return true;
   if (auto rec = mlir::dyn_cast<fir::RecordType>(t))
     return hasDynamicSize(rec);
+  if (auto boxChar = mlir::dyn_cast<fir::BoxCharType>(t)) {
+    return characterWithDynamicLen(boxChar.getEleTy());
+  }
----------------
bhandarkar-pranav wrote:

I have made the change. In fact, I didnt need this at all after my change in the parent PR -> https://github.com/llvm/llvm-project/blob/main/flang/lib/Optimizer/Dialect/FIRType.cpp#L258

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


More information about the flang-commits mailing list