]> granicus.if.org Git - clang/commitdiff
Fix parenthesized assert (nfc).
authorManuel Klimek <klimek@google.com>
Tue, 1 Nov 2016 10:30:50 +0000 (10:30 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 1 Nov 2016 10:30:50 +0000 (10:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index f676a9d48f4a2609c8f5fb2191067cfdb7d3783c..2c8061564f44ea05cffbe90f6f4c185ee476db29 100644 (file)
@@ -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();