tra added a subscriber: rsmith.
tra added a comment.
The use case in the tests makes sense, but I'd like to have a second opinion on
whether it may have unintended consequences. Lambdas tend to bring interesting
corner cases.
@rsmith Richard, do you see any issues with this approach?
================
Comment at: clang/test/CodeGenCUDA/lambda-reference-var.cu:61
+ [=](){
+ int &ref = global_device_var;
+ ref++;
----------------
Do we have current Sema tests that verify that we we would not allow accessing
host vars here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91088/new/
https://reviews.llvm.org/D91088
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits