Sampler initialization from integer literal was broken in C++ mode for OpenCL. Fixing to allow functions that take a sampler to take an integer and for samplers to be initialized to integer values.
I expect the example from the bug is going to compile now: https://bugs.llvm.org/show_bug.cgi?id=41009
Can you please close the bug after the commit.
|1854 ↗||(On Diff #210061)|
My only comment here is that we might be able to remove the same logic where it works just for C. But it can be done in a separate patch too.
|1856 ↗||(On Diff #210061)|
No idea why we are adding separate conversion kind for event and queue types. Again, it might be something we can simplify above.