[flang-commits] [flang] [Flang][OpenMP] Fix copyin allocatable lowering to MLIR (PR #122097)

Kaviya Rajendiran via flang-commits flang-commits at lists.llvm.org
Mon Jan 20 09:30:53 PST 2025


================
@@ -1298,10 +1298,15 @@ class FirConverter : public Fortran::lower::AbstractConverter {
     } else if (isAllocatable &&
                (flags.test(Fortran::semantics::Symbol::Flag::OmpFirstPrivate) ||
                 flags.test(Fortran::semantics::Symbol::Flag::OmpCopyIn))) {
-      // For firstprivate and copyin allocatable variables, RHS must be copied
+      // For firstprivate allocatable variables, RHS must be copied
----------------
kaviya2510 wrote:

I have added a separate check for copyin clause. So I think this change isn't necessary.

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


More information about the flang-commits mailing list