aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-09-22 13:03:14 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-09-22 13:03:14 +0000
commit9df05ea69b16e48f2b1cda56c2c341ce77493f4e (patch)
tree1407b724e2345e74efb32a9ee97057ceaf4194a2 /lib/CodeGen/CGClass.cpp
parent77b6de07be9186063c12928d2e9785a5d4eecbf6 (diff)
In OpenCL, conversions between different vector types are disallowed
OpenCL 6.2.1 says: "Implicit conversions between built-in vector data types are disallowed." OpenCL 6.2.2 says: "Explicit casts between vector types are not legal." For example: uint4 u = (uint4)(1); int4 i = u; // invalid implicit conversion int4 e = (int4)u; // invalid explicit conversion Fixes PR10967. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions