[cfe-commits] r106595 - in /cfe/trunk: lib/AST/Type.cpp lib/Analysis/PrintfFormatString.cpp lib/Checker/CheckSecuritySyntaxOnly.cpp lib/CodeGen/CGObjCMac.cpp lib/Sema/SemaExprCXX.cpp lib/Sema/SemaOverload.cpp lib/Sema/SemaStmt.cpp test/Sema/ext_vector_casts.c

Chris Lattner clattner at apple.com
Tue Jun 22 17:28:26 PDT 2010


On Jun 22, 2010, at 4:07 PM, Douglas Gregor wrote:

> Author: dgregor
> Date: Tue Jun 22 18:07:26 2010
> New Revision: 106595
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=106595&view=rev
> Log:
> Type Type::isRealFloatingType() that vectors are not floating-point
> types, updating callers of both isFloatingType() and
> isRealFloatingType() accordingly. Caught at least one issue where we
> allowed one to declare a vector of vectors (!), along with cleaning up
> the standard-conversion logic for C++.

Nice!

> 
> +
> +typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector type 'float2'}}


Should this be "invalid vector *element* type"?

-Chris



More information about the cfe-commits mailing list