]> granicus.if.org Git - clang/commit
Prevent implicit re-interpret casts between ExtVector and Scalar types.
authorStephen Canon <scanon@apple.com>
Tue, 15 Sep 2015 00:21:56 +0000 (00:21 +0000)
committerStephen Canon <scanon@apple.com>
Tue, 15 Sep 2015 00:21:56 +0000 (00:21 +0000)
commit65721268c69eadf998d8fb55c65d384088c71eac
tree6bdb73e33298c712f76cd5856b2d37d57b34da60
parent8183daa856f66c2c5fe50b3ea9b2d731b180f639
Prevent implicit re-interpret casts between ExtVector and Scalar types.

Previously, in certain cases lax vector conversions could occur between scalar floating-point values and ExtVector types; these conversions would be simple bitcasts.  We need to allow them with other vector types to support some common headers, but we don't need them for ExtVector.  Preventing them here makes them behave like other operations involving scalars and ExtVectors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247643 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/ext_vector_conversions.c [new file with mode: 0644]