summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2016-11-01 10:30:50 +0000
committerManuel Klimek <klimek@google.com>2016-11-01 10:30:50 +0000
commitda7456ad0e89ace93fa4ac3b89ed23db3491dd63 (patch)
tree087cc1d6469c5d44ffaa6a876f3d7bfd7dbe23e6 /clang/lib/AST/Decl.cpp
parent8a89d3662a8ce311ff55eef68d9a3910d9bfeeef (diff)
downloadbcm5719-llvm-da7456ad0e89ace93fa4ac3b89ed23db3491dd63.tar.gz
bcm5719-llvm-da7456ad0e89ace93fa4ac3b89ed23db3491dd63.zip
Fix parenthesized assert (nfc).
llvm-svn: 285685
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index f676a9d48f4..2c8061564f4 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -3048,8 +3048,8 @@ const Attr *FunctionDecl::getUnusedResultAttr() const {
/// an externally visible symbol, but "extern inline" will not create an
/// externally visible symbol.
bool FunctionDecl::isInlineDefinitionExternallyVisible() const {
- assert(doesThisDeclarationHaveABody() ||
- willHaveBody() && "Must be a function definition");
+ assert((doesThisDeclarationHaveABody() || willHaveBody()) &&
+ "Must be a function definition");
assert(isInlined() && "Function must be inline");
ASTContext &Context = getASTContext();
OpenPOWER on IntegriCloud