Skip to content

Commit c697445

Browse files
committed
clang coding guidelines
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
1 parent bc3bdb3 commit c697445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,12 @@ getKernelInvocationKind(FunctionDecl *KernelCallerFunc) {
729729
}
730730

731731
static const CXXRecordDecl *getKernelObjectType(FunctionDecl *Caller) {
732-
auto KernelParamTy = (*Caller->param_begin())->getType();
732+
QualType KernelParamTy = (*Caller->param_begin())->getType();
733733
// In SYCL 2020 kernels are now passed by reference.
734734
if (KernelParamTy->isReferenceType())
735735
return KernelParamTy->getPointeeCXXRecordDecl();
736-
else
737-
return KernelParamTy->getAsCXXRecordDecl(); // SYCL 1.2
736+
737+
return KernelParamTy->getAsCXXRecordDecl(); // SYCL 1.2
738738
}
739739

740740
/// Creates a kernel parameter descriptor

0 commit comments

Comments
 (0)