Skip to content

Commit cac4727

Browse files
[NFC][SYCL]Remove unused function parameter. (#7185)
1 parent c2c74c3 commit cac4727

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13621,7 +13621,7 @@ class Sema final {
1362113621
bool IsMemberFunction, SourceLocation Loc, SourceRange Range,
1362213622
VariadicCallType CallType);
1362313623

13624-
void CheckSYCLKernelCall(FunctionDecl *CallerFunc, SourceRange CallLoc,
13624+
void CheckSYCLKernelCall(FunctionDecl *CallerFunc,
1362513625
ArrayRef<const Expr *> Args);
1362613626

1362713627
bool CheckObjCString(Expr *Arg);

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5966,7 +5966,7 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
59665966
diagnoseArgDependentDiagnoseIfAttrs(FD, ThisArg, Args, Loc);
59675967

59685968
if (FD && FD->hasAttr<SYCLKernelAttr>())
5969-
CheckSYCLKernelCall(FD, Range, Args);
5969+
CheckSYCLKernelCall(FD, Args);
59705970

59715971
// Diagnose variadic calls in SYCL.
59725972
if (FD && FD->isVariadic() && getLangOpts().SYCLIsDevice &&

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3943,7 +3943,7 @@ class SYCLKernelNameTypeVisitor
39433943
}
39443944
};
39453945

3946-
void Sema::CheckSYCLKernelCall(FunctionDecl *KernelFunc, SourceRange CallLoc,
3946+
void Sema::CheckSYCLKernelCall(FunctionDecl *KernelFunc,
39473947
ArrayRef<const Expr *> Args) {
39483948
QualType KernelNameType =
39493949
calculateKernelNameType(getASTContext(), KernelFunc);

0 commit comments

Comments
 (0)