Skip to content

Commit 42edb22

Browse files
committed
Formatting changes
1 parent 4be6df0 commit 42edb22

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,8 +2072,11 @@ class SyclKernelFieldChecker : public SyclKernelFieldHandler {
20722072
bool handleSyclSpecialType(ParmVarDecl *PD, QualType ParamTy) final {
20732073
if (SemaSYCL::isSyclType(ParamTy, SYCLTypeAttr::work_group_memory))
20742074
IsInvalid = false;
2075-
else
2076-
IsInvalid |= checkSyclSpecialType(ParamTy, PD->getLocation());
2075+
else {
2076+
Diag.Report(PD->getLocation(), diag::err_bad_kernel_param_type)
2077+
<< ParamTy;
2078+
IsInvalid = true;
2079+
}
20772080
return isValid();
20782081
}
20792082

0 commit comments

Comments
 (0)