[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:56:08 PDT 2026


================
@@ -1612,7 +1612,9 @@ class MapInfoFinalizationPass
                "single users or up to two users when those users"
                "are a MapInfoOp and Target mapping directive");
 
-        if (hasADescriptor(op.getVarPtr().getDefiningOp(),
+        if (!bitEnumContainsAll(op.getMapType(),
----------------
TIFitis wrote:

Thanks for pointing out, the test works without this so I've removed it.

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


More information about the flang-commits mailing list