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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM! Thanks!
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.
lib/Sema/SemaOverload.cpp | ||
---|---|---|
1854 | 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 | No idea why we are adding separate conversion kind for event and queue types. Again, it might be something we can simplify above. |
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.