hliao added inline comments.

================
Comment at: clang/test/CodeGenCUDA/lambda.cu:83
+void test_resolve(void) {
+  test_resolve_helper([&](){ overloaded<int>();});
+}
----------------
We are allowing regular lambda to be used in the device functions. That should 
be explicitly marked by making that lambda `__device__` or `__host__ 
__device__`. Even though we may not have static checks for capture so far, that 
should be easily extended with those attributes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78655/new/

https://reviews.llvm.org/D78655



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to