[flang-commits] [flang] [llvm] [flang][OpenMP] Update handling of DEPEND clause (PR #113620)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Oct 28 07:37:11 PDT 2024


================
@@ -798,11 +798,11 @@ bool ClauseProcessor::processDepend(mlir::omp::DependClauseOps &result) const {
   return findRepeatableClause<omp::clause::Depend>(
       [&](const omp::clause::Depend &clause, const parser::CharBlock &) {
         using Depend = omp::clause::Depend;
-        assert(std::holds_alternative<Depend::WithLocators>(clause.u) &&
-               "Only the modern form is handled at the moment");
-        auto &modern = std::get<Depend::WithLocators>(clause.u);
-        auto kind = std::get<Depend::TaskDependenceType>(modern.t);
-        auto &objects = std::get<omp::ObjectList>(modern.t);
+        assert(std::holds_alternative<Depend::DepType>(clause.u) &&
+               "Only the form with depenence type is handled at the moment");
----------------
kiranchandramohan wrote:

```suggestion
               "Only the form with dependence type is handled at the moment");
```

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


More information about the flang-commits mailing list