[flang-commits] [flang] [Flang] - Handle `BoxCharType` in `fir.box_offset` op (PR #141713)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed May 28 04:14:24 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))
----------------
tblah wrote:
Why was this needed?
https://github.com/llvm/llvm-project/pull/141713
More information about the flang-commits
mailing list