pxli168 added a comment. You can update the SUMMARY of this diff as we are now using generic codegen output. And there are some inline comments about spec.
================ Comment at: test/SemaOpenCL/to_addr_builtin.cl:25 @@ +24,3 @@ + glob = to_global(con); +#if __OPENCL_C_VERSION__ < CL_VERSION_2_0 + // expected-error@-2{{'to_global' needs OpenCL version 2.0 or above}} ---------------- But in Spec OpenCL V2.0 s6.13.9 the description for to_global is: > Returns a pointer that points to a region in the global address space if > to_global can cast ptr to the global address space. Otherwise it returns NULL. http://reviews.llvm.org/D19932 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits