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 bc3bdb3 commit c697445Copy full SHA for c697445
clang/lib/Sema/SemaSYCL.cpp
@@ -729,12 +729,12 @@ getKernelInvocationKind(FunctionDecl *KernelCallerFunc) {
729
}
730
731
static const CXXRecordDecl *getKernelObjectType(FunctionDecl *Caller) {
732
- auto KernelParamTy = (*Caller->param_begin())->getType();
+ QualType KernelParamTy = (*Caller->param_begin())->getType();
733
// In SYCL 2020 kernels are now passed by reference.
734
if (KernelParamTy->isReferenceType())
735
return KernelParamTy->getPointeeCXXRecordDecl();
736
- else
737
- return KernelParamTy->getAsCXXRecordDecl(); // SYCL 1.2
+
+ return KernelParamTy->getAsCXXRecordDecl(); // SYCL 1.2
738
739
740
/// Creates a kernel parameter descriptor
0 commit comments