[PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Mon May 9 10:47:13 PDT 2016
yaxunl marked 4 inline comments as done.
================
Comment at: test/SemaOpenCL/to_addr_builtin.cl:24
@@ +23,3 @@
+
+ glob = to_global(con);
+#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
----------------
pxli168 wrote:
> should this return a NULL or a build error?
the function is declared as
global gentype* to_addr(generic gentype*);
since constant pointer cannot be implicitly casted to a generic pointer (OpenCL v2.0 s6.5.5), this should cause a compilation error.
http://reviews.llvm.org/D19932
More information about the cfe-commits
mailing list