[flang-commits] [flang] [flang][OpenMP] Allow loop iteration variables in DSA clauses (PR #86194)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Thu Mar 21 15:52:03 PDT 2024
================
@@ -1649,6 +1649,12 @@ void OmpAttributeVisitor::ResolveSeqLoopIndexInParallelOrTaskConstruct(
break;
}
}
+ // If this symbol already has a data-sharing attribute then there is nothing
+ // to do here.
+ if (const Symbol *symbol = iv.symbol)
+ for (auto symMap : targetIt->objectWithDSA)
+ if (symMap.first->name() == symbol->name())
+ return;
----------------
kiranchandramohan wrote:
Nit: Frontend style uses curly braces.
https://github.com/llvm/llvm-project/pull/86194
More information about the flang-commits
mailing list