Skip to content

Commit dd52ed5

Browse files
committed
Cleanup
1 parent 34524f4 commit dd52ed5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,6 @@ class KernelObjVisitor {
12631263
std::initializer_list<int>{(result = result && tn(BD, BDTy), 0)...};
12641264
return result;
12651265
}
1266-
template <typename... Tn>
1267-
bool handleField(ParmVarDecl *PD, QualType PDTy, Tn &&...tn) {
1268-
bool result = true;
1269-
std::initializer_list<int>{(result = result && tn(PD, PDTy), 0)...};
1270-
return result;
1271-
}
12721266

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

0 commit comments

Comments
 (0)