Change behavior introduced in r298369 and only error out on vector component invalid length access on OpenCL mode.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/SemaOpenCL/vector_swizzle_length.cl | ||
---|---|---|
7 ↗ | (On Diff #118871) | Even though this works in Clang, ideally OpenCL vector literal is with parenthesis (see s6.1.6). |
13 ↗ | (On Diff #118871) | 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. |
Comment Actions
LGTM!
test/SemaOpenCL/vector_swizzle_length.cl | ||
---|---|---|
7 ↗ | (On Diff #118871) | Can you undo this change please before committing. Thanks! |