[PATCH] D146418: Support for OpenMP 5.0 sec 2.12.7 - Declare Target initializer expressions
David Spickett via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 26 08:23:42 PDT 2023
DavidSpickett added inline comments.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:23148
+ GlobalDeclRefChecker Checker;
+ if (auto *TargetVarDecl = dyn_cast_or_null<VarDecl>(TargetDecl))
+ Checker.declareTargetInitializer(TargetDecl);
----------------
FYI I fixed an unused var warning here: https://github.com/llvm/llvm-project/commit/f3ca99a87c566fb5e910071f4cbb474ddb4e7f37
Potentially you could pass the result of the cast into declareTargetInitializer but I don't know enough about the code to change that too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146418/new/
https://reviews.llvm.org/D146418
More information about the cfe-commits
mailing list