[PATCH] D24666: [OpenCL] Allow half type kernel argument when cl_khr_fp16 is enabled

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 16 08:21:16 PDT 2016


bader added inline comments.

================
Comment at: test/SemaOpenCL/half.cl:29
@@ +28,3 @@
+kernel void half_disabled_kernel(global half *p,
+                                 half h);  // expected-error{{'half' cannot be used as the type of a kernel parameter}} // expected-error{{declaring function parameter of type 'half' is not allowed; did you forget * ?}}
+
----------------
It's not related to your change, but it looks like there are two checks that report the same error.
Could you remove the duplication, please?


https://reviews.llvm.org/D24666





More information about the cfe-commits mailing list