[flang-commits] [flang] [flang][FIR] add fir.assumed_size_extent to abstract assumed-size extent encoding (PR #164452)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Tue Oct 21 10:33:40 PDT 2025


================
@@ -4010,8 +4010,8 @@ class FirConverter : public Fortran::lower::AbstractConverter {
       // parameters and dynamic type. The selector cannot be a
       // POINTER/ALLOCATBLE as per F'2023 C1160.
       fir::ExtendedValue newExv;
-      llvm::SmallVector assumeSizeExtents{
-          builder->createMinusOneInteger(loc, builder->getIndexType())};
+      llvm::SmallVector<mlir::Value> assumeSizeExtents{
+          builder->create<fir::AssumedSizeExtentOp>(loc)};
----------------
clementval wrote:

Can you use the new create api?

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


More information about the flang-commits mailing list