[flang-commits] [flang] [flang][cuda] Apply implicit managed attribute to pointer variables under -gpu=mem:managed (PR #204634)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Mon Jun 22 10:52:46 PDT 2026


================
@@ -10411,8 +10412,9 @@ void ResolveNamesVisitor::FinishSpecificationPart(
           object->set_cudaDataAttr(common::CUDADataAttr::Managed);
         // Implicitly treat allocatable arrays as pinned when feature is
         // enabled.
-        else if (context().languageFeatures().IsEnabled(
-                     common::LanguageFeature::CudaPinned))
+        else if (IsAllocatable(symbol) &&
+            context().languageFeatures().IsEnabled(
----------------
clementval wrote:

Unrelated change? 

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


More information about the flang-commits mailing list