Skip to content

Commit

Permalink
[NFC][SYCL]Remove unused function parameter. (#7185)
Browse files Browse the repository at this point in the history
  • Loading branch information
srividya-sundaram authored Oct 28, 2022
1 parent c2c74c3 commit cac4727
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Sema/Sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -13621,7 +13621,7 @@ class Sema final {
bool IsMemberFunction, SourceLocation Loc, SourceRange Range,
VariadicCallType CallType);

void CheckSYCLKernelCall(FunctionDecl *CallerFunc, SourceRange CallLoc,
void CheckSYCLKernelCall(FunctionDecl *CallerFunc,
ArrayRef<const Expr *> Args);

bool CheckObjCString(Expr *Arg);
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaChecking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5966,7 +5966,7 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
diagnoseArgDependentDiagnoseIfAttrs(FD, ThisArg, Args, Loc);

if (FD && FD->hasAttr<SYCLKernelAttr>())
CheckSYCLKernelCall(FD, Range, Args);
CheckSYCLKernelCall(FD, Args);

// Diagnose variadic calls in SYCL.
if (FD && FD->isVariadic() && getLangOpts().SYCLIsDevice &&
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3943,7 +3943,7 @@ class SYCLKernelNameTypeVisitor
}
};

void Sema::CheckSYCLKernelCall(FunctionDecl *KernelFunc, SourceRange CallLoc,
void Sema::CheckSYCLKernelCall(FunctionDecl *KernelFunc,
ArrayRef<const Expr *> Args) {
QualType KernelNameType =
calculateKernelNameType(getASTContext(), KernelFunc);
Expand Down

0 comments on commit cac4727

Please sign in to comment.