[flang-commits] [flang] [Flang][HLFIR] Lower PACK(array, .TRUE.) to hlfir.reshape (PR #213603)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Fri Aug 14 08:51:12 PDT 2026
================
@@ -3126,7 +3192,8 @@ class ReshapeAsElementalConversion
// elements from the PAD array.
mlir::Value arraySize =
pad ? computeArraySize(loc, builder, arrayExtents) : nullptr;
- hlfir::Entity shape = hlfir::Entity{reshape.getShape()};
+ mlir::Value shapeVal = reshape.getShape();
+ hlfir::Entity shape = hlfir::Entity{shapeVal};
----------------
vzakhari wrote:
Please revert to the original code.
https://github.com/llvm/llvm-project/pull/213603
More information about the flang-commits
mailing list