[flang-commits] [flang] [flang][OpenMP] Use 'present-modifier' instead of 'expectation' in 5.1 (PR #214083)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Wed Aug 5 05:24:09 PDT 2026


================
@@ -1694,34 +1706,46 @@ To make(const parser::OmpClause::To &inp,
         semantics::SemanticsContext &semaCtx) {
   // inp.v -> parser::OmpToClause
   CLAUSET_ENUM_CONVERT( //
-      convert, parser::OmpExpectation::Value, To::Expectation,
+      convertExp, parser::OmpExpectation::Value, To::Expectation,
+      // clang-format off
+      MS(Present, Present)
+      // clang-format on
+  );
+  CLAUSET_ENUM_CONVERT( //
+      convertPre, parser::OmpPresentModifier::Value, From::Expectation,
----------------
tblah wrote:

This should use To::Expectation

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


More information about the flang-commits mailing list