]> granicus.if.org Git - clang/commit
Allow ArraySubscriptExpr to be a base node for vector dereference. This
authorNate Begeman <natebegeman@mac.com>
Tue, 19 Feb 2008 01:11:03 +0000 (01:11 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 19 Feb 2008 01:11:03 +0000 (01:11 +0000)
commit60c9b1867fab9d57e6828aa8d36baea703a08ff2
tree3184b7122d53fdbe229bb04f6c644959b37da0d8
parentc2c95b0c42b85db733182be56b4dbcf62262a6eb
Allow ArraySubscriptExpr to be a base node for vector dereference.  This
allows you to do things like
typedef __attribute__(( ocu_vector_type(4))) float float4;
float4 *x;
float y = x[0][2];

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47295 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaExpr.cpp