summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-08-03 22:40:33 +0000
committerSteve Naroff <snaroff@apple.com>2007-08-03 22:40:33 +0000
commit0104731e6258cb2b0445620d3b81c89bc7ffbfcd (patch)
tree567a069702172283cb859744c9d72e016ec0ed50 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9efdabc565548d2f64eebcf81a471e001f18b129 (diff)
downloadbcm5719-llvm-0104731e6258cb2b0445620d3b81c89bc7ffbfcd.tar.gz
bcm5719-llvm-0104731e6258cb2b0445620d3b81c89bc7ffbfcd.zip
Restrict vector component access (using "." and "[]") to variables.
Chris suggested this, since it simplifies the code generator. If this features is needed (and we don't think it is), we can revisit. The following test case now produces an error. [dylan:~/llvm/tools/clang] admin% cat t.c typedef __attribute__(( ocu_vector_type(4) )) float float4; static void test() { float4 vec4; vec4.rg.g; vec4.rg[1]; } [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang t.c t.c:8:12: error: vector component access limited to variables vec4.rg.g; ^~ t.c:9:12: error: vector component access limited to variables vec4.rg[1]; ^~~ 2 diagnostics generated. llvm-svn: 40795
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud