diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2010-08-30 07:36:24 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2010-08-30 07:36:24 +0000 |
| commit | 9ed87ba797f0ce88ae173b4e2126b64a40525582 (patch) | |
| tree | 083f94f2b0d2e84da97274b833ca98c017c0e47d /clang/lib | |
| parent | 75c205e7e288c929675906dcc8e2869f078ce222 (diff) | |
| download | bcm5719-llvm-9ed87ba797f0ce88ae173b4e2126b64a40525582.tar.gz bcm5719-llvm-9ed87ba797f0ce88ae173b4e2126b64a40525582.zip | |
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.
llvm-svn: 112466
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 4d0ac90d393..06b742ddbae 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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 |

