[flang-commits] [flang] [flang][OpenMP] Convert AST node for ALLOCATORS to use Block as body (PR #148005)

Jack Styles via flang-commits flang-commits at lists.llvm.org
Fri Jul 11 01:05:04 PDT 2025


================
@@ -372,6 +367,29 @@ class OmpAttributeVisitor : DirectiveAttributeVisitor<llvm::omp::Directive> {
     GetContext().withinConstruct = true;
   }
 
+  bool Pre(const parser::OpenMPStandaloneConstruct &x) {
+    common::visit(
+        [&](auto &&s) {
+          using TypeS = llvm::remove_cvref_t<decltype(s)>;
+          // These two cases are handled individually.
+          if constexpr ( //
----------------
Stylie777 wrote:

nit: Same here

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


More information about the flang-commits mailing list