Skip to content

Commit 481bda9

Browse files
[NFC][Sema] Minor code quality change in SemaSYCL.cpp (#6827)
Signed-off-by: Elizabeth Andrews <[email protected]>
1 parent 50bc1e9 commit 481bda9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,9 +2106,9 @@ class SyclKernelDeclCreator : public SyclKernelFieldHandler {
21062106
// CodeGen.
21072107
QualType PointeeTy = FieldTy->getPointeeType();
21082108
Qualifiers Quals = PointeeTy.getQualifiers();
2109-
auto AS = Quals.getAddressSpace();
2109+
LangAS AS = Quals.getAddressSpace();
21102110
// Leave global_device and global_host address spaces as is to help FPGA
2111-
// device in memory allocations
2111+
// device in memory allocations.
21122112
if (!PointeeTy->isFunctionType() && AS != LangAS::sycl_global_device &&
21132113
AS != LangAS::sycl_global_host)
21142114
Quals.setAddressSpace(LangAS::sycl_global);

0 commit comments

Comments
 (0)