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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits