aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-16 00:23:25 +0000
committerChris Lattner <sabre@nondot.org>2007-07-16 00:23:25 +0000
commit7a2e047c602d6ba28d6c434c990d4b9f7ef8c694 (patch)
tree23df6b2b8c8a06f294ee33ea1c4845a2296cd100 /CodeGen/CodeGenFunction.cpp
parent12d9ff6a07cddd30b91ccc7922f909cfa02c2d8e (diff)
Now that isPointerType can return a pointer type, avoid stripping off typedef
information in the common case. On this invalid code: typedef float float4 __attribute__((vector_size(16))); typedef int int4 __attribute__((vector_size(16))); void test(float4 a, int4 *result, int i) { result[i] = a; } we now generate: t.c:5:15: error: incompatible types assigning 'float4' to 'int4' instead of: t.c:5:15: error: incompatible types assigning 'float4' to 'int __attribute__((vector_size(16)))' This implements test/Sema/typedef-retain.c git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions