[clang] [llvm] [OpenMP 60] Update parsing and semantic support for `nowait` clause to accept optional argument (PR #159628)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 29 09:33:55 PDT 2025
================
@@ -308,6 +308,13 @@ OMPClause::child_range OMPIfClause::used_children() {
return child_range(&Condition, &Condition + 1);
}
+OMPClause::child_range OMPNowaitClause::used_children() {
+ if (Condition)
+ return child_range(&Condition, &Condition + 1);
+ Stmt *Null = nullptr;
+ return child_range(&Null, &Null);
----------------
alexey-bataev wrote:
This is wrong, reference to a temp variable
https://github.com/llvm/llvm-project/pull/159628
More information about the cfe-commits
mailing list