Change behavior introduced in r298369 and only error out on vector component invalid length access on OpenCL mode.
Details
Diff Detail
Event Timeline
test/SemaOpenCL/vector_swizzle_length.cl | ||
---|---|---|
6 | Even though this works in Clang, ideally OpenCL vector literal is with parenthesis (see s6.1.6). | |
11 | I am not sure it's good idea to test C mode here since this is intended for OpenCL only functionality. I think it might be better to separate C functionality and keep under regular Sema tests. We could keep the same test name to be able to identify similar functionality. |
LGTM!
test/SemaOpenCL/vector_swizzle_length.cl | ||
---|---|---|
6 | Can you undo this change please before committing. Thanks! |
Even though this works in Clang, ideally OpenCL vector literal is with parenthesis (see s6.1.6).