[PATCH] D91281: [CUDA][HIP] Diagnose reference of host variable
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 11 10:12:50 PST 2020
tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.
LGTM.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:357
+ if (LangOpts.CUDAIsDevice) {
+ auto *FD = dyn_cast_or_null<FunctionDecl>(CurContext);
----------------
This could use a comment why we only check `D->H` references.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91281/new/
https://reviews.llvm.org/D91281
More information about the cfe-commits
mailing list