[PATCH] D16928: [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0
Mats Petersson via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 16 06:20:10 PST 2016
MatsPetersson 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 *, ...);
----------------
pekka.jaaskelainen wrote:
> 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.
Good spot, this should be fixed.
http://reviews.llvm.org/D16928
More information about the cfe-commits
mailing list