From 629f9e49d984912c408c6d0096f5fdffbd98b44f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 30 Aug 2010 07:36:24 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaExpr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) { - if (const VectorType *RV = rhsType->getAs()) + if (const VectorType *RV = rhsType->getAs()) { 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 -- 2.40.0