[flang-commits] [flang] [llvm] [Flang][OpenMP] Accept the reduction modifier (PR #86492)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Thu Apr 11 03:02:03 PDT 2024


================
@@ -1005,12 +1005,28 @@ ProcBind make(const parser::OmpClause::ProcBind &inp,
 Reduction make(const parser::OmpClause::Reduction &inp,
                semantics::SemanticsContext &semaCtx) {
   // inp.v -> parser::OmpReductionClause
-  auto &t0 = std::get<parser::OmpReductionOperator>(inp.v.t);
-  auto &t1 = std::get<parser::OmpObjectList>(inp.v.t);
+  using wrapped = parser::OmpReductionClause;
+
+  CLAUSET_ENUM_CONVERT( //
----------------
tblah wrote:

nit
```suggestion
  CLAUSET_ENUM_CONVERT(
```

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


More information about the flang-commits mailing list