diff options
author | Justin Lebar <jlebar@google.com> | 2016-09-30 19:55:59 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-09-30 19:55:59 +0000 |
commit | 7a406e78b3b67a7f5cd694f0cdcce1a23216bca1 (patch) | |
tree | 0df172acaa934449be8aab48037f4aa55968e30c /clang/lib/Sema/SemaCUDA.cpp | |
parent | e46ea72d97e55039ff5a71ff50a154d8de28440b (diff) | |
download | llvm-7a406e78b3b67a7f5cd694f0cdcce1a23216bca1.zip llvm-7a406e78b3b67a7f5cd694f0cdcce1a23216bca1.tar.gz llvm-7a406e78b3b67a7f5cd694f0cdcce1a23216bca1.tar.bz2 |
[CUDA] Remove incorrect comment in CUDASetLambdaAttrs.
I'd said that nvcc doesn't allow you to add __host__ or __device__
attributes on lambdas in all circumstances, but I believe this was user
error on my part. I can't reproduce these warnings/errors if I pass
--expt-extended-lambda to nvcc.
llvm-svn: 282912
Diffstat (limited to 'clang/lib/Sema/SemaCUDA.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCUDA.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaCUDA.cpp b/clang/lib/Sema/SemaCUDA.cpp index 293baa5..abfe107 100644 --- a/clang/lib/Sema/SemaCUDA.cpp +++ b/clang/lib/Sema/SemaCUDA.cpp @@ -573,8 +573,4 @@ void Sema::CUDASetLambdaAttrs(CXXMethodDecl *Method) { Method->addAttr(CUDADeviceAttr::CreateImplicit(Context)); Method->addAttr(CUDAHostAttr::CreateImplicit(Context)); } - - // TODO: nvcc doesn't allow you to specify __host__ or __device__ attributes - // on lambdas in all contexts -- we should emit a compatibility warning where - // we're more permissive. } |