[clang] [llvm] [OpenMP]Initial parsing/sema support for target_device selector set (PR #118471)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 21 10:52:48 PST 2025


================
@@ -2805,7 +2818,7 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
         };
     TargetOMPContext OMPCtx(ASTContext, std::move(DiagUnknownTrait),
                             /* CurrentFunctionDecl */ nullptr,
-                            ArrayRef<llvm::omp::TraitProperty>());
+                            ArrayRef<llvm::omp::TraitProperty>(), -1);
----------------
alexey-bataev wrote:

```suggestion
                            {}, -1);
```
Also, do not use magic numbers


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


More information about the cfe-commits mailing list