[flang-commits] [flang] [Flang] - Handle `BoxCharType` in `fir.box_offset` op (PR #141713)

via flang-commits flang-commits at lists.llvm.org
Mon Jun 2 04:02:32 PDT 2025


================
@@ -278,8 +278,9 @@ inline mlir::Type unwrapRefType(mlir::Type t) {
 /// If `t` conforms with a pass-by-reference type (box, ref, ptr, etc.) then
 /// return the element type of `t`. Otherwise, return `t`.
 inline mlir::Type unwrapPassByRefType(mlir::Type t) {
-  if (auto eleTy = dyn_cast_ptrOrBoxEleTy(t))
-    return eleTy;
+  if (conformsWithPassByRef(t))
----------------
jeanPerier wrote:

I also do not follow. 

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


More information about the flang-commits mailing list