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 c0044ab commit 1a0898fCopy full SHA for 1a0898f
clang/lib/Sema/SemaSYCL.cpp
@@ -339,7 +339,7 @@ void SemaSYCL::CheckSYCLEntryPointFunctionDecl(FunctionDecl *FD) {
339
diag::err_sycl_entry_point_deduced_return_type);
340
SKEPAttr->setInvalidAttr();
341
} else if (!FD->getReturnType()->isDependentType() &&
342
- !FD->getReturnType()->isVoidType()) {
+ !FD->getReturnType()->isVoidType()) {
343
Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_return_type);
344
345
}
0 commit comments