diff options
author | Steve Naroff <snaroff@apple.com> | 2007-07-12 21:46:55 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-07-12 21:46:55 +0000 |
commit | c63b96ad706e054a1390dd2ab53af9f05d33bbb1 (patch) | |
tree | dac952364e78a43dc14ed05115a83f1ff312ff49 /CodeGen/CodeGenTypes.cpp | |
parent | a7fa381a50bd27a2f3788a73bbf9fb7c13e8cc26 (diff) |
Two changes...
- Teach all the integer/float predicates on Type about Vectors.
- Disallow bitwise compliment on float vectors. For example...
typedef float __attribute__(( vector_size(16) )) float4;
float4 float4_return()
{
float4 xx;
return ~xx;
}
...now emits the following diagnostic...
[administrators-powerbook59:~/llvm/tools/clang] admin% ../../Debug/bin/clang bug.c
bug.c:8:12: error: invalid argument type to unary expression 'float4'
return ~xx;
^
1 diagnostic generated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.cpp')
0 files changed, 0 insertions, 0 deletions