@@ -4810,7 +4810,7 @@ static void handleOptimizeNoneAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
4810
4810
static void handleSYCLDeviceAttr (Sema &S, Decl *D, const ParsedAttr &AL) {
4811
4811
auto *FD = cast<FunctionDecl>(D);
4812
4812
if (!FD->isExternallyVisible ()) {
4813
- S.Diag (AL.getLoc (), diag::err_sycl_attibute_cannot_be_applied_here ) << AL;
4813
+ S.Diag (AL.getLoc (), diag::err_sycl_attribute_internal_function ) << AL;
4814
4814
return ;
4815
4815
}
4816
4816
@@ -4821,7 +4821,7 @@ static void handleSYCLDeviceIndirectlyCallableAttr(Sema &S, Decl *D,
4821
4821
const ParsedAttr &AL) {
4822
4822
auto *FD = cast<FunctionDecl>(D);
4823
4823
if (!FD->isExternallyVisible ()) {
4824
- S.Diag (AL.getLoc (), diag::err_sycl_attibute_cannot_be_applied_here ) << AL;
4824
+ S.Diag (AL.getLoc (), diag::err_sycl_attribute_internal_function ) << AL;
4825
4825
return ;
4826
4826
}
4827
4827
@@ -4832,7 +4832,7 @@ static void handleSYCLDeviceIndirectlyCallableAttr(Sema &S, Decl *D,
4832
4832
static void handleSYCLRegisterNumAttr (Sema &S, Decl *D, const ParsedAttr &AL) {
4833
4833
auto *VD = cast<VarDecl>(D);
4834
4834
if (!VD->hasGlobalStorage ()) {
4835
- S.Diag (AL.getLoc (), diag::err_sycl_attibute_cannot_be_applied_here )
4835
+ S.Diag (AL.getLoc (), diag::err_sycl_attribute_internal_function )
4836
4836
<< AL << 0 ;
4837
4837
return ;
4838
4838
}
0 commit comments