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 50bc1e9 commit 481bda9Copy full SHA for 481bda9
clang/lib/Sema/SemaSYCL.cpp
@@ -2106,9 +2106,9 @@ class SyclKernelDeclCreator : public SyclKernelFieldHandler {
2106
// CodeGen.
2107
QualType PointeeTy = FieldTy->getPointeeType();
2108
Qualifiers Quals = PointeeTy.getQualifiers();
2109
- auto AS = Quals.getAddressSpace();
+ LangAS AS = Quals.getAddressSpace();
2110
// Leave global_device and global_host address spaces as is to help FPGA
2111
- // device in memory allocations
+ // device in memory allocations.
2112
if (!PointeeTy->isFunctionType() && AS != LangAS::sycl_global_device &&
2113
AS != LangAS::sycl_global_host)
2114
Quals.setAddressSpace(LangAS::sycl_global);
0 commit comments