[clang] [OpenMP] Emit the metadirective runtime selection (PR #239292)

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 07:46:44 PST 2026


================
@@ -6627,6 +6627,13 @@ class OMPMetaDirective final : public OMPExecutableDirective {
   /// directive has no 'otherwise' clause.
   bool HasImplicitOtherwise = false;
 
+  /// The OpenMP constructs that enclose the directive.
+  ArrayRef<llvm::omp::TraitProperty> ConstructTraits;
----------------
zahiraam wrote:

Fixed: `ConstructTraits` is now tail-allocated on the directive.

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


More information about the cfe-commits mailing list