summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/vector.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-06-23 18:10:35 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-06-23 18:10:35 +0000
commit1408bc9a55b868af67f1360ff5b51b5c68b8b0f3 (patch)
treeae5abfd51070af8c84a95164527b9a068c34292b /clang/test/SemaCXX/vector.cpp
parent6cdd72a9caef025b922620e8e1bfdaf0f14e4965 (diff)
downloadbcm5719-llvm-1408bc9a55b868af67f1360ff5b51b5c68b8b0f3.tar.gz
bcm5719-llvm-1408bc9a55b868af67f1360ff5b51b5c68b8b0f3.zip
Fix Sema::CheckVectorOperands so that it doesn't try to insert a cast expression into the LHS of a compound assignment. Fixes compound assignment of various "compatible" vector types, including NEON-vector and gcc-vector types.
<rdar://problem/9640356> llvm-svn: 133737
Diffstat (limited to 'clang/test/SemaCXX/vector.cpp')
-rw-r--r--clang/test/SemaCXX/vector.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/vector.cpp b/clang/test/SemaCXX/vector.cpp
index 9ae2c82fc53..4d3d93974c1 100644
--- a/clang/test/SemaCXX/vector.cpp
+++ b/clang/test/SemaCXX/vector.cpp
@@ -176,10 +176,10 @@ void test_implicit_conversions(bool Cond, char16 c16, longlong16 ll16,
(void)(to_c16 * to_c16e);
(void)(to_c16 / to_c16e);
(void)(rto_c16 = c16e); // expected-error{{no viable overloaded '='}}
- (void)(rto_c16 += to_c16e); // expected-error{{expression is not assignable}}
- (void)(rto_c16 -= to_c16e); // expected-error{{expression is not assignable}}
- (void)(rto_c16 *= to_c16e); // expected-error{{expression is not assignable}}
- (void)(rto_c16 /= to_c16e); // expected-error{{expression is not assignable}}
+ (void)(rto_c16 += to_c16e);
+ (void)(rto_c16 -= to_c16e);
+ (void)(rto_c16 *= to_c16e);
+ (void)(rto_c16 /= to_c16e);
(void)(Cond? to_c16 : to_c16e);
(void)(Cond? to_ll16e : to_ll16);
OpenPOWER on IntegriCloud