PATCH: Sema allow casting 0 to event_t for OpenCL

Tom Stellard tom at stellard.net
Fri Aug 8 12:17:13 PDT 2014


Hi,

This patch allows OpenCL programs to cast 0 as event_t e.g.

void foo(event_t e);

foo((event_t)0);

This is allowed by the OpenCL specification.

If this patch is approved, would it be OK to merge it to the
3.5 branch?

Thanks,
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sema-Allow-casting-0-to-OpenCL-builtin-type-event_t.patch
Type: text/x-diff
Size: 1433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140808/2e43349c/attachment.patch>


More information about the cfe-commits mailing list