[cfe-dev] Explicit type cast of zero to OpenCL event_t type

jingu kang jaykang10 at gmail.com
Fri May 3 02:00:23 PDT 2013


Hi all,

I have a question. Clang allows implicit type cast of zero to OpenCL
event_t type to support OpenCL async_work_group_copy() function. But
explicit type cast generates the error. Could someone explain about this
why clang prevent explicit type cast of zero to OpenCL event_t type? I
think OpenCL spec does not mention about implicit or explicit type cast to
event_t type. I have attached the simple patch to support explicit type
cast on the assumption that it is needed.

Please review this patch.

Thanks,
JinGu Kang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130503/456a865a/attachment.html>


More information about the cfe-dev mailing list