aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCUDA.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-09-30 19:55:59 +0000
committerJustin Lebar <jlebar@google.com>2016-09-30 19:55:59 +0000
commit7a406e78b3b67a7f5cd694f0cdcce1a23216bca1 (patch)
tree0df172acaa934449be8aab48037f4aa55968e30c /clang/lib/Sema/SemaCUDA.cpp
parente46ea72d97e55039ff5a71ff50a154d8de28440b (diff)
downloadllvm-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.cpp4
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.
}