From: Manuel Klimek Date: Wed, 9 Mar 2016 10:06:45 +0000 (+0000) Subject: Pacify gcc's parenthesis warning, which doesn't realize that parens don't matter... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8959b11ca44b9e5fc21ebf7afe2e8b5d2237ba85;p=clang Pacify gcc's parenthesis warning, which doesn't realize that parens don't matter here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263004 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Index/IndexingContext.cpp b/lib/Index/IndexingContext.cpp index 238de57ccd..0a235afc28 100644 --- a/lib/Index/IndexingContext.cpp +++ b/lib/Index/IndexingContext.cpp @@ -297,9 +297,8 @@ bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc, Parent = adjustParent(Parent); if (Parent) Parent = getCanonicalDecl(Parent); - assert(!Parent || !Parent->isImplicit() || - isa(Parent) || - isa(Parent) || isa(Parent) && + assert((!Parent || !Parent->isImplicit() || isa(Parent) || + isa(Parent) || isa(Parent)) && "unexpected implicit parent!"); SmallVector FinalRelations;