From e933268d9ec235235f4a17572e4ea4794e65c226 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Fri, 30 Sep 2016 19:55:59 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282912 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaCUDA.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Sema/SemaCUDA.cpp b/lib/Sema/SemaCUDA.cpp index 293baa55e0..abfe107d00 100644 --- a/lib/Sema/SemaCUDA.cpp +++ b/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. } -- 2.40.0