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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to