aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-08-30 07:36:24 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-08-30 07:36:24 +0000
commit629f9e49d984912c408c6d0096f5fdffbd98b44f (patch)
treedde702f80c9d5044b0d15b22fa0923212be5e08e
parente425368eb59687b66620a2c6adc3e426c997d796 (diff)
Add some braces for sanity and GCC silence. These became unbalanced in r112122,
so please review echristo and let me know if the logic is wrong now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112466 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 4d0ac90d39..06b742ddba 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -5035,7 +5035,7 @@ QualType Sema::CheckVectorOperands(SourceLocation Loc, Expr *&lex, Expr *&rex) {
// type. It would be nice if we only had one vector type someday.
if (getLangOptions().LaxVectorConversions) {
if (const VectorType *LV = lhsType->getAs<VectorType>()) {
- if (const VectorType *RV = rhsType->getAs<VectorType>())
+ if (const VectorType *RV = rhsType->getAs<VectorType>()) {
if (LV->getElementType() == RV->getElementType() &&
LV->getNumElements() == RV->getNumElements()) {
if (lhsType->isExtVectorType()) {
@@ -5053,6 +5053,7 @@ QualType Sema::CheckVectorOperands(SourceLocation Loc, Expr *&lex, Expr *&rex) {
return lhsType;
}
}
+ }
}
// Handle the case of equivalent AltiVec and GCC vector types