From 0f552af6ae7331a418e0d93766851d078c12d653 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284843 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 2 +- lib/Sema/SemaCUDA.cpp | 2 +- lib/Sema/SemaDecl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 08e6a29ca1..8b81b40335 100644 --- a/include/clang/Sema/Sema.h +++ b/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/lib/Sema/SemaCUDA.cpp b/lib/Sema/SemaCUDA.cpp index 7e05cc86ba..c578f92dc6 100644 --- a/lib/Sema/SemaCUDA.cpp +++ b/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/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 2711b36268..c0b06336e2 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/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.40.0