We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be6df0 commit 42edb22Copy full SHA for 42edb22
clang/lib/Sema/SemaSYCL.cpp
@@ -2072,8 +2072,11 @@ class SyclKernelFieldChecker : public SyclKernelFieldHandler {
2072
bool handleSyclSpecialType(ParmVarDecl *PD, QualType ParamTy) final {
2073
if (SemaSYCL::isSyclType(ParamTy, SYCLTypeAttr::work_group_memory))
2074
IsInvalid = false;
2075
- else
2076
- IsInvalid |= checkSyclSpecialType(ParamTy, PD->getLocation());
+ else {
+ Diag.Report(PD->getLocation(), diag::err_bad_kernel_param_type)
2077
+ << ParamTy;
2078
+ IsInvalid = true;
2079
+ }
2080
return isValid();
2081
}
2082
0 commit comments