PATCH: Sema allow casting 0 to event_t for OpenCL

Matt Arsenault arsenm2 at gmail.com
Fri Aug 8 12:45:03 PDT 2014


On Aug 8, 2014, at 12:17 PM, Tom Stellard <tom at stellard.net> wrote:

> 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
> <0001-Sema-Allow-casting-0-to-OpenCL-builtin-type-event_t.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

This came up a few months ago. See this thread: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20140217/099653.html



More information about the cfe-commits mailing list