]> granicus.if.org Git - clang/commit
Vectors are not integer types, so the type system should not classify
authorDouglas Gregor <dgregor@apple.com>
Fri, 23 Jul 2010 15:58:24 +0000 (15:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 23 Jul 2010 15:58:24 +0000 (15:58 +0000)
commitf60946222721d9ba3c059563935c17b84703187a
tree5a1b6da84874f6737f59d2c432a62379109efacd
parent766c20130dc6b960be420483a168c82a66b5bb7b
Vectors are not integer types, so the type system should not classify
them as such. Type::is(Signed|Unsigned|)IntegerType() now return false
for vector types, and new functions
has(Signed|Unsigned|)IntegerRepresentation() cover integer types and
vector-of-integer types. This fixes a bunch of latent bugs.

Patch from Anton Yartsev!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109229 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CanonicalType.h
include/clang/AST/Type.h
lib/AST/ASTContext.cpp
lib/AST/Type.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprObjC.cpp
lib/Sema/SemaType.cpp
test/Sema/vector-ops.c [new file with mode: 0644]