]> granicus.if.org Git - clang/commit
C. Compare vector sizes using their raw element size instead of
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 6 Mar 2014 22:47:09 +0000 (22:47 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 6 Mar 2014 22:47:09 +0000 (22:47 +0000)
commit73b802fc806c47637fdc2bcf1987b0412216b3ef
tree0e673d8ce151a3a0b5aad668fa0e6fd955644e38
parentbb46ff589d60c109277728c9f94ff9ce9553eca1
C. Compare vector sizes using their raw element size instead of
getTypeSize (which rounds up sizes) in order to issue diagnostics
when casting to mismatched vector sizes; instead of crashing in IRGen.
// rdar:// 16196902. Reviewed offline by John McCall.

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