Fix "suggest parentheses" warning.

llvm-svn: 265355
This commit is contained in:
James Y Knight 2016-04-04 22:35:56 +00:00
parent 4cdade6a2f
commit e635215009
1 changed files with 3 additions and 3 deletions

View File

@ -254,8 +254,8 @@ void SwiftAggLowering::addLegalTypedData(llvm::Type *type,
void SwiftAggLowering::addEntry(llvm::Type *type, void SwiftAggLowering::addEntry(llvm::Type *type,
CharUnits begin, CharUnits end) { CharUnits begin, CharUnits end) {
assert(!type || assert((!type ||
(!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type)) && (!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type))) &&
"cannot add aggregate-typed data"); "cannot add aggregate-typed data");
assert(!type || begin.isMultipleOf(getNaturalAlignment(CGM, type))); assert(!type || begin.isMultipleOf(getNaturalAlignment(CGM, type)));