[flang-commits] [flang] Adding parsing and semantic check support for omp masked (PR #91432)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Wed May 8 05:00:31 PDT 2024


================
@@ -1105,18 +1112,18 @@ bool AccAttributeVisitor::Pre(const parser::OpenACCCombinedConstruct &x) {
 static bool IsLastNameArray(const parser::Designator &designator) {
   const auto &name{GetLastName(designator)};
   const evaluate::DataRef dataRef{*(name.symbol)};
-  return common::visit(
-      common::visitors{
-          [](const evaluate::SymbolRef &ref) {
-            return ref->Rank() > 0 ||
-                ref->GetType()->category() == DeclTypeSpec::Numeric;
-          },
-          [](const evaluate::ArrayRef &aref) {
-            return aref.base().IsSymbol() ||
-                aref.base().GetComponent().base().Rank() == 0;
-          },
-          [](const auto &) { return false; },
-      },
+  return common::visit(common::visitors{
----------------
skatrak wrote:

Nit: Unrelated formatting change.

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


More information about the flang-commits mailing list