summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/SwiftCallingConv.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2016-04-04 22:35:56 +0000
committerJames Y Knight <jyknight@google.com>2016-04-04 22:35:56 +0000
commite635215009ed6db7d810a56364b04fb0614dc47e (patch)
treea53fb49c3e02f99aaa103fa6214ac5939f03d384 /clang/lib/CodeGen/SwiftCallingConv.cpp
parent4cdade6a2f3a3378f821249b337989427e3518ca (diff)
downloadbcm5719-llvm-e635215009ed6db7d810a56364b04fb0614dc47e.tar.gz
bcm5719-llvm-e635215009ed6db7d810a56364b04fb0614dc47e.zip
Fix "suggest parentheses" warning.
llvm-svn: 265355
Diffstat (limited to 'clang/lib/CodeGen/SwiftCallingConv.cpp')
-rw-r--r--clang/lib/CodeGen/SwiftCallingConv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/SwiftCallingConv.cpp b/clang/lib/CodeGen/SwiftCallingConv.cpp
index 44b46f62f86..ffb305f9316 100644
--- a/clang/lib/CodeGen/SwiftCallingConv.cpp
+++ b/clang/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);
}
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud