commit | dbb6dc37c377f8dd183f2069a6e27610d1202d98 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Wed May 08 13:43:13 2013 -0700 |
committer | Stephen Hines <srhines@google.com> | Wed May 08 14:05:08 2013 -0700 |
tree | 3bff95e46cadaf4ef51c346f55dd9c45c6444444 | |
parent | 35626d1d34c548fffad4f3f2826749dae71914a3 [diff] |
Disallow implicit and explicit casts of vector types in llvm-rs-cc. Bug: 7342914 Vector types are aggregates (just like structs), and casting of any type results in bitcasts being generated. This misbehaves when converting between things like float and int. Even more troublesome than explicit casts are implicit casts, which can arise from accidental arithmetic operations between two different vector types. Change-Id: If27a0f70d1da5f1773261a38e6b4572aeb976701