[Sema] When checking if a bitcast is appropriate between vector types, take into
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 4 Jan 2014 03:31:22 +0000 (03:31 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 4 Jan 2014 03:31:22 +0000 (03:31 +0000)
commiteb68f6a9de3c782e93321e48422b4ac2b4f9a6be
tree77ca69ef2e5202bab9120b7cbd4f4017de685192
parent658eb68e82e665132e15a96a85384974de20ceef
[Sema] When checking if a bitcast is appropriate between vector types, take into
consideration the num-of-elements*width-of-element width.

Disallow casts when such width is not equal between the vector types otherwise
we may end up with an invalid LLVM bitcast.

rdar://15722308.

llvm-svn: 198474
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/ext_vector_casts.c