@@ -92,7 +92,7 @@ class Util {
92
92
93
93
// / Checks whether given clang type is a full specialization of the SYCL
94
94
// / no_alias class.
95
- static bool isSyclAccessorNoAliasPropertyType (const QualType & Ty);
95
+ static bool isSyclAccessorNoAliasPropertyType (QualType Ty);
96
96
97
97
// / Checks whether given clang type is a full specialization of the SYCL
98
98
// / buffer_location class.
@@ -1754,7 +1754,7 @@ class SyclKernelDeclCreator : public SyclKernelFieldHandler {
1754
1754
}
1755
1755
1756
1756
void handleNoAliasProperty (ParmVarDecl *Param, QualType PropTy,
1757
- SourceLocation Loc) {
1757
+ SourceLocation Loc) {
1758
1758
if (PropTy.isRestrictQualified ()) {
1759
1759
ASTContext &Ctx = SemaRef.getASTContext ();
1760
1760
Param->addAttr (RestrictAttr::CreateImplicit (Ctx, Loc));
@@ -4328,16 +4328,14 @@ bool Util::isSyclKernelHandlerType(const QualType &Ty) {
4328
4328
}
4329
4329
4330
4330
bool Util::isSyclAccessorNoAliasPropertyType (QualType Ty) {
4331
- StringRef PropertyName = " no_alias" ;
4332
- StringRef InstanceName = " instance" ;
4333
4331
std::array<DeclContextDesc, 6 > Scopes = {
4334
4332
Util::DeclContextDesc{Decl::Kind::Namespace, " cl" },
4335
4333
Util::DeclContextDesc{Decl::Kind::Namespace, " sycl" },
4336
4334
Util::DeclContextDesc{Decl::Kind::Namespace, " ONEAPI" },
4337
4335
Util::DeclContextDesc{Decl::Kind::Namespace, " property" },
4338
- Util::DeclContextDesc{Decl::Kind::CXXRecord, PropertyName },
4336
+ Util::DeclContextDesc{Decl::Kind::CXXRecord, " no_alias " },
4339
4337
Util::DeclContextDesc{Decl::Kind::ClassTemplateSpecialization,
4340
- InstanceName }};
4338
+ " instance " }};
4341
4339
return matchQualifiedTypeName (Ty, Scopes);
4342
4340
}
4343
4341
0 commit comments