Pārlūkot izejas kodu

Fix "suggest parentheses" warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265355 91177308-0d34-0410-b5e6-96231b3b80d8
James Y Knight 9 gadi atpakaļ
vecāks
revīzija
227e640101
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      lib/CodeGen/SwiftCallingConv.cpp

+ 3 - 3
lib/CodeGen/SwiftCallingConv.cpp

@@ -254,8 +254,8 @@ void SwiftAggLowering::addLegalTypedData(llvm::Type *type,
 
 void SwiftAggLowering::addEntry(llvm::Type *type,
                                 CharUnits begin, CharUnits end) {
-  assert(!type ||
-         (!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type)) &&
+  assert((!type ||
+          (!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type))) &&
          "cannot add aggregate-typed data");
   assert(!type || begin.isMultipleOf(getNaturalAlignment(CGM, type)));
 
@@ -827,4 +827,4 @@ void swiftcall::computeABIInfo(CodeGenModule &CGM, CGFunctionInfo &FI) {
     auto &argInfo = FI.arg_begin()[i];
     argInfo.info = classifyArgumentType(CGM, argInfo.type);
   }
-}
+}