[flang-commits] [flang] [flang] Update UBOUND runtime API and lowering (PR #95085)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Jun 11 09:29:56 PDT 2024


================
@@ -6366,8 +6387,9 @@ IntrinsicLibrary::genLbound(mlir::Type resultType,
   // LBOUND(array, dim, [kind]) or LBOUND(array, [kind]).
   const bool dimIsAbsent = args.size() == 2 || isStaticallyAbsent(args, 1);
   if (array.hasAssumedRank() && dimIsAbsent)
-    return genAssumedRankBoundInquiry(builder, loc, resultType, args,
-                                      /*kindPos=*/1, fir::runtime::genLbound);
+    return genBoundInquiry(builder, loc, resultType, args,
+                           /*kindPos=*/1, fir::runtime::genLbound,
----------------
vzakhari wrote:

Is the `kindPos` correct for the case of statically absent dim?

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


More information about the flang-commits mailing list