[flang-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Fix Fortran automap handling (PR #162501)

Akash Banerjee via flang-commits flang-commits at lists.llvm.org
Fri Jul 10 06:57:43 PDT 2026


================
@@ -6565,7 +6571,7 @@ createAlteredByCaptureMap(MapInfoData &mapData,
         std::vector<llvm::Value *> offsetIdx = calculateBoundsOffset(
             moduleTranslation, builder, mapData.BaseType[i]->isArrayTy(),
             mapOp.getBounds());
-        if (isPtrTy)
+        if (isPtrTy && (!isAttachMap || isRefPtrOrPteeMapWithAttach))
----------------
TIFitis wrote:

I think this is now redundant and I've removed this.

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


More information about the flang-commits mailing list