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

via flang-commits flang-commits at lists.llvm.org
Wed Jun 12 00:29:11 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,
----------------
jeanPerier wrote:

No, I updated it to take the arg size into account like I did in Ubound. Thanks for catching this!

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


More information about the flang-commits mailing list