]> granicus.if.org Git - clang/commitdiff
Fix "suggest parentheses" warning.
authorJames Y Knight <jyknight@google.com>
Mon, 4 Apr 2016 22:35:56 +0000 (22:35 +0000)
committerJames Y Knight <jyknight@google.com>
Mon, 4 Apr 2016 22:35:56 +0000 (22:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SwiftCallingConv.cpp

index 44b46f62f860f957acd5e1802c8b439d0d217936..ffb305f93166a6199b4b2e76faef6411e2be3d96 100644 (file)
@@ -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);
   }
-}
\ No newline at end of file
+}