[PATCH] D91088: [CUDA][HIP] Fix capturing reference to host variable
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 9 11:06:48 PST 2020
yaxunl added inline comments.
================
Comment at: clang/test/CodeGenCUDA/lambda-reference-var.cu:61
+ [=](){
+ int &ref = global_device_var;
+ ref++;
----------------
tra wrote:
> Do we have current Sema tests that verify that we we would not allow accessing host vars here?
currently clang does not diagnose access to host global variable in device functions. do we want to diagnose that?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91088/new/
https://reviews.llvm.org/D91088
More information about the cfe-commits
mailing list