]> granicus.if.org Git - clang/commitdiff
Removed unused function argument. NFC.
authorArtem Belevich <tra@google.com>
Fri, 21 Oct 2016 17:15:46 +0000 (17:15 +0000)
committerArtem Belevich <tra@google.com>
Fri, 21 Oct 2016 17:15:46 +0000 (17:15 +0000)
Differential Revision: https://reviews.llvm.org/D25839

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284843 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h
lib/Sema/SemaCUDA.cpp
lib/Sema/SemaDecl.cpp

index 08e6a29ca11e31124a06ec168f3e1d42a9e73171..8b81b40335c234f50caccab17de6b2ca3e506758 100644 (file)
@@ -9445,7 +9445,7 @@ public:
 
   /// May add implicit CUDAHostAttr and CUDADeviceAttr attributes to FD,
   /// depending on FD and the current compilation settings.
-  void maybeAddCUDAHostDeviceAttrs(Scope *S, FunctionDecl *FD,
+  void maybeAddCUDAHostDeviceAttrs(FunctionDecl *FD,
                                    const LookupResult &Previous);
 
 public:
index 7e05cc86ba11bdccd310c33aaaed6ba1edf11b90..c578f92dc63d799d0894f5780448cb83278b0467 100644 (file)
@@ -439,7 +439,7 @@ bool Sema::isEmptyCudaDestructor(SourceLocation Loc, CXXDestructorDecl *DD) {
 // ForceCUDAHostDeviceDepth > 0 (corresponding to code within a
 //   #pragma clang force_cuda_host_device_begin/end
 // pair).
-void Sema::maybeAddCUDAHostDeviceAttrs(Scope *S, FunctionDecl *NewD,
+void Sema::maybeAddCUDAHostDeviceAttrs(FunctionDecl *NewD,
                                        const LookupResult &Previous) {
   assert(getLangOpts().CUDA && "Should only be called during CUDA compilation");
 
index 2711b36268501d197b37063f364c1bcea73e2425..c0b06336e242c6ef4faf5ae565dfe2f300172510 100644 (file)
@@ -8264,7 +8264,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
   ProcessDeclAttributes(S, NewFD, D);
 
   if (getLangOpts().CUDA)
-    maybeAddCUDAHostDeviceAttrs(S, NewFD, Previous);
+    maybeAddCUDAHostDeviceAttrs(NewFD, Previous);
 
   if (getLangOpts().OpenCL) {
     // OpenCL v1.1 s6.5: Using an address space qualifier in a function return