tra added a comment.

Overall looks good, though I've got one more question.



================
Comment at: clang/test/SemaCUDA/device-use-host-var.cu:90
+  const int &ref_const_var = global_const_var;
   const int &ref_constexpr_var = global_constexpr_var;
   *out = ref_host_var;
----------------
What happens if we have  `const int &ref_foo = 
something_we_cant_emit_on_device;`?
Both if ref_foo is and isn't used from device code.




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

https://reviews.llvm.org/D103108

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

Reply via email to