r265355 - Fix "suggest parentheses" warning.

James Y Knight via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 4 15:36:03 PDT 2016


Author: jyknight
Date: Mon Apr  4 17:35:56 2016
New Revision: 265355

URL: http://llvm.org/viewvc/llvm-project?rev=265355&view=rev
Log:
Fix "suggest parentheses" warning.

Modified:
    cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp

Modified: cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp?rev=265355&r1=265354&r2=265355&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp (original)
+++ cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp Mon Apr  4 17:35:56 2016
@@ -254,8 +254,8 @@ void SwiftAggLowering::addLegalTypedData
 
 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(CodeGenMo
     auto &argInfo = FI.arg_begin()[i];
     argInfo.info = classifyArgumentType(CGM, argInfo.type);
   }
-}
\ No newline at end of file
+}




More information about the cfe-commits mailing list