[clang] [Clang][OpenMP] Fixing Clang error for metadirective with multiple when clauses and no otherwise (PR #148583)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 20 06:59:23 PDT 2025
================
@@ -108,6 +108,12 @@ void foo1(void) {
: parallel) otherwise(parallel for)
for (int i=0; i<10; i++)
;
+
+#pragma omp metadirective when(user = {condition(1)} \
+ : parallel for) when(implementation = {extension(match_none)} \
+ : parallel)
+ for (int i=0; i<10; i++)
+ ;
----------------
Ritanya-B-Bharadwaj wrote:
I have changed the lit test case. The reproducer passes with this patch.
https://github.com/llvm/llvm-project/pull/148583
More information about the cfe-commits
mailing list