[CUDA] Remove incorrect comment in CUDASetLambdaAttrs.
authorJustin Lebar <jlebar@google.com>
Fri, 30 Sep 2016 19:55:59 +0000 (19:55 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 30 Sep 2016 19:55:59 +0000 (19:55 +0000)
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

clang/lib/Sema/SemaCUDA.cpp

index 293baa5..abfe107 100644 (file)
@@ -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.
 }