]> granicus.if.org Git - clang/commitdiff
Use a consistent style. NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 27 Apr 2017 23:59:45 +0000 (23:59 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 27 Apr 2017 23:59:45 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301601 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 8cb0c600f0d57359eb88e16601f1237401e05aba..f7307f35568de897a2d08080daa742b71e73ac68 100644 (file)
@@ -6431,14 +6431,13 @@ static QualType checkConditionalPointerCompatibility(Sema &S, ExprResult &LHS,
       return S.Context
           .getQualifiedType(CompositeTy.getUnqualifiedType(), CompositeQuals)
           .withCVRQualifiers(MergedCVRQual);
-    } else
-      return CompositeTy.withCVRQualifiers(MergedCVRQual);
+    }
+    return CompositeTy.withCVRQualifiers(MergedCVRQual);
   }();
   if (IsBlockPointer)
     ResultTy = S.Context.getBlockPointerType(ResultTy);
-  else {
+  else
     ResultTy = S.Context.getPointerType(ResultTy);
-  }
 
   LHS = S.ImpCastExprToType(LHS.get(), ResultTy, LHSCastKind);
   RHS = S.ImpCastExprToType(RHS.get(), ResultTy, RHSCastKind);