]> granicus.if.org Git - clang/commitdiff
Add some braces for sanity and GCC silence. These became unbalanced in r112122,
authorChandler Carruth <chandlerc@gmail.com>
Mon, 30 Aug 2010 07:36:24 +0000 (07:36 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 30 Aug 2010 07:36:24 +0000 (07:36 +0000)
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

index 4d0ac90d393864d4d72db241abdca9fbcad963be..06b742ddbae2fcd182c40d42b1c5f26a50309b5f 100644 (file)
@@ -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