[PATCH] D16928: [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0

Pekka Jääskeläinen via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 16 01:37:18 PST 2016


pekka.jaaskelainen added inline comments.

================
Comment at: test/SemaOpenCL/invalid-func.cl:6
@@ +5,2 @@
+void foo(int, ...); // expected-error{{OpenCL does not allow variadic arguments}}
+int printf(const char *, ...);
----------------
I wonder should we check for the fingerprint too when letting printf() pass?
This is not the correct OpenCL printf() as the first argument should be in constant address space.


http://reviews.llvm.org/D16928





More information about the cfe-commits mailing list