[PATCH] D25105: [CUDA] Make lambdas inherit __host__ and __device__ attributes from the scope in which they're created.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 09:36:28 PDT 2016


jlebar created this revision.
jlebar added a reviewer: tra.
jlebar added subscribers: rnk, cfe-commits.

NVCC compat.  Fixes bug 30567.


https://reviews.llvm.org/D25105

Files:
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaCUDA.cpp
  clang/lib/Sema/SemaLambda.cpp
  clang/test/SemaCUDA/implicit-device-lambda-hd.cu
  clang/test/SemaCUDA/implicit-device-lambda.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25105.73073.patch
Type: text/x-patch
Size: 5530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160930/8f63d343/attachment-0001.bin>


More information about the cfe-commits mailing list