From 9fb40e3bbdf4d01f3c527725608b83adc3579d90 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Fri, 21 Oct 2016 17:15:46 +0000 Subject: [PATCH] Removed unused function argument. NFC. Differential Revision: https://reviews.llvm.org/D25839 llvm-svn: 284843 --- clang/include/clang/Sema/Sema.h | 2 +- clang/lib/Sema/SemaCUDA.cpp | 2 +- clang/lib/Sema/SemaDecl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 08e6a29..8b81b40 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -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: diff --git a/clang/lib/Sema/SemaCUDA.cpp b/clang/lib/Sema/SemaCUDA.cpp index 7e05cc8..c578f92 100644 --- a/clang/lib/Sema/SemaCUDA.cpp +++ b/clang/lib/Sema/SemaCUDA.cpp @@ -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"); diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 2711b36..c0b0633 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -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 -- 2.7.4