[PATCH] D79344: [cuda] Start diagnosing variables with bad target.

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 4 12:55:56 PDT 2020


hliao marked an inline comment as done.
hliao added inline comments.


================
Comment at: clang/test/SemaCUDA/variable-target.cu:42
+  return 0;
+}
----------------
yaxunl wrote:
> we need to have a test to check captured local host variable is allowed in device lambda.
> 
> we need to have some test for constexpr variables used in device function.
This patch just addresses the direct address of variables. For capture, it would be better to start with another patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79344





More information about the cfe-commits mailing list