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

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 07:43:37 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( //
----------------
kparzysz wrote:

Clang-format mutilates the layout without the trailing `//`.

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


More information about the llvm-commits mailing list