r263004 - Pacify gcc's parenthesis warning, which doesn't realize that parens don't matter here.
Manuel Klimek via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 9 02:06:46 PST 2016
Author: klimek
Date: Wed Mar 9 04:06:45 2016
New Revision: 263004
URL: http://llvm.org/viewvc/llvm-project?rev=263004&view=rev
Log:
Pacify gcc's parenthesis warning, which doesn't realize that parens don't matter here.
Modified:
cfe/trunk/lib/Index/IndexingContext.cpp
Modified: cfe/trunk/lib/Index/IndexingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/IndexingContext.cpp?rev=263004&r1=263003&r2=263004&view=diff
==============================================================================
--- cfe/trunk/lib/Index/IndexingContext.cpp (original)
+++ cfe/trunk/lib/Index/IndexingContext.cpp Wed Mar 9 04:06:45 2016
@@ -297,9 +297,8 @@ bool IndexingContext::handleDeclOccurren
Parent = adjustParent(Parent);
if (Parent)
Parent = getCanonicalDecl(Parent);
- assert(!Parent || !Parent->isImplicit() ||
- isa<FunctionDecl>(Parent) ||
- isa<ObjCInterfaceDecl>(Parent) || isa<ObjCMethodDecl>(Parent) &&
+ assert((!Parent || !Parent->isImplicit() || isa<FunctionDecl>(Parent) ||
+ isa<ObjCInterfaceDecl>(Parent) || isa<ObjCMethodDecl>(Parent)) &&
"unexpected implicit parent!");
SmallVector<SymbolRelation, 6> FinalRelations;
More information about the cfe-commits
mailing list