aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenTypes.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-07-12 21:46:55 +0000
committerSteve Naroff <snaroff@apple.com>2007-07-12 21:46:55 +0000
commitc63b96ad706e054a1390dd2ab53af9f05d33bbb1 (patch)
treedac952364e78a43dc14ed05115a83f1ff312ff49 /CodeGen/CodeGenTypes.cpp
parenta7fa381a50bd27a2f3788a73bbf9fb7c13e8cc26 (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