]> granicus.if.org Git - clang/commitdiff
Silence GCC warning about && and || without explicit grouping.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 8 Aug 2010 05:02:51 +0000 (05:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 8 Aug 2010 05:02:51 +0000 (05:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110537 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index d3855a52a13b11292322c9c43ad7a4e8ca8f9964..f0b1fcb6d05b06cfc19c5fa1d0d1aba0dc556353 100644 (file)
@@ -857,8 +857,8 @@ static bool IsVectorConversion(ASTContext &Context, QualType FromType,
   //   same size
   if (ToType->isVectorType() && FromType->isVectorType()) {
     if (Context.areCompatibleVectorTypes(FromType, ToType) ||
-       Context.getLangOptions().LaxVectorConversions &&
-       (Context.getTypeSize(FromType) == Context.getTypeSize(ToType))) {
+        (Context.getLangOptions().LaxVectorConversions &&
+         (Context.getTypeSize(FromType) == Context.getTypeSize(ToType)))) {
       ICK = ICK_Vector_Conversion;
       return true;
     }