[PATCH] D47630: [Sema] Allow creating types with multiple of the same addrspace.

Alexey Bader via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 1 07:24:54 PDT 2018


bader added inline comments.


================
Comment at: test/Sema/address_spaces.c:17
   int *_AS1 _AS2 *Z;  // expected-error {{multiple address spaces specified for type}}
+  int *_AS1 _AS1 *M;
 
----------------
I think it might be valuable to give a warning or remark to user. 
Using the same address space qualifier multiple times is not something OpenCL C developers are supposed to do.



Repository:
  rC Clang

https://reviews.llvm.org/D47630





More information about the cfe-commits mailing list