diff options
| author | John McCall <rjmccall@apple.com> | 2014-02-04 23:58:19 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2014-02-04 23:58:19 +0000 |
| commit | 66ad8de6288e61a9b86d36283fd154179a42b1d4 (patch) | |
| tree | b43d528bf8147bf89854c3ee673ae79ae16b0a88 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 2553832899895c57f4225f1d80345ef0c4b4d3a4 (diff) | |
| download | clang-66ad8de6288e61a9b86d36283fd154179a42b1d4.tar.gz clang-66ad8de6288e61a9b86d36283fd154179a42b1d4.tar.bz2 clang-66ad8de6288e61a9b86d36283fd154179a42b1d4.tar.xz | |
Tighten lax vector-conversion rules and enforce them consistently.
When a lax conversion featured a vector and a non-vector, we were
only requiring the non-vector to be a scalar type, but really it
needs to be a real type (i.e. integral or real floating); it is
not reasonable to allow a pointer, member pointer, or complex
type here.
r198474 required lax conversions to match in "data size", i.e.
element size * element count, forbidding matches that happen
only because a vector is rounded up to the nearest power of two
in size. Unfortunately, the erroneous logic was repeated in
several different places; unify them to use the new condition,
so that it triggers for arbitrary conversions and not just
those performed as part of binary operator checking.
rdar://15931426
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
