================
@@ -8978,6 +8982,18 @@ void Sema::CheckVariableDeclarationType(VarDecl *NewVD) {
     NewVD->setType(T);
   }
 
+  // The SYCL address space attributes may only be applied to the object type
+  // of an object pointer or object reference type.
----------------
tahonermann wrote:

Per the discussion on the wording of the diagnostic, let's update this comment 
too.

```suggestion
  // The top-level type of a variable declaration cannot have a SYCL address 
space qualifier.
```

https://github.com/llvm/llvm-project/pull/200849
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to