[PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 09:39:57 PDT 2016


Anastasia added inline comments.

================
Comment at: test/Frontend/opencl-blocks.cl:11
@@ +10,3 @@
+#if __OPENCL_C_VERSION__ < CL_VERSION_2_0 && !defined(BLOCKS)
+  // expected-error at -2{{blocks support disabled - compile with -fblocks or pick a deployment target that supports them}}
+#else
----------------
This is not part of this change, but I was just wondering whether it would make sense to update the message to refer to OpenCL version that allows blocks (similarly to other cases).

We might need to create different diagnostic or use select option?


http://reviews.llvm.org/D20444





More information about the cfe-commits mailing list