[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:14 PDT 2026
================
@@ -1708,7 +1736,7 @@ llvm::LogicalResult hlfir::ReshapeOp::verify() {
hlfir::getFortranElementOrSequenceType(shape.getType()));
if (shapeArrayType.getDimension() != 1)
return emitOpError("SHAPE must be an array of rank 1");
- if (!mlir::isa<mlir::IntegerType>(shapeArrayType.getElementType()))
+ if (!fir::isa_integer(shapeArrayType.getElementType()))
----------------
vzakhari wrote:
Please add a LIT test case for `index` shape.
https://github.com/llvm/llvm-project/pull/213603
More information about the flang-commits
mailing list