Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Fznamznon committed Sep 12, 2024
1 parent 34524f4 commit dd52ed5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,12 +1263,6 @@ class KernelObjVisitor {
std::initializer_list<int>{(result = result && tn(BD, BDTy), 0)...};
return result;
}
template <typename... Tn>
bool handleField(ParmVarDecl *PD, QualType PDTy, Tn &&...tn) {
bool result = true;
std::initializer_list<int>{(result = result && tn(PD, PDTy), 0)...};
return result;
}

// This definition using std::bind is necessary because of a gcc 7.x bug.
#define KF_FOR_EACH(FUNC, Item, Qt) \
Expand Down Expand Up @@ -1450,7 +1444,7 @@ class KernelObjVisitor {
if (isSyclSpecialType(ParamTy, SemaSYCLRef))
KP_FOR_EACH(handleOtherType, Param, ParamTy);
else if (ParamTy->isStructureOrClassType()) {
if (KF_FOR_EACH(handleStructType, Param, ParamTy)) {
if (KP_FOR_EACH(handleStructType, Param, ParamTy)) {
CXXRecordDecl *RD = ParamTy->getAsCXXRecordDecl();
visitRecord(nullptr, Param, RD, ParamTy, Handlers...);
}
Expand Down

0 comments on commit dd52ed5

Please sign in to comment.