diff options
author | Manuel Klimek <klimek@google.com> | 2016-03-09 10:06:45 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2016-03-09 10:06:45 +0000 |
commit | 7186309cde553e503143e20eb47cff1868f4474e (patch) | |
tree | 05d52db68ac3fc7dceb6aba4e732afb3c2115573 /clang/lib/Index/IndexingContext.cpp | |
parent | ef549a89559c1038f2cc8fbdf62a49ec78ef5aa7 (diff) | |
download | bcm5719-llvm-7186309cde553e503143e20eb47cff1868f4474e.tar.gz bcm5719-llvm-7186309cde553e503143e20eb47cff1868f4474e.zip |
Pacify gcc's parenthesis warning, which doesn't realize that parens don't matter here.
llvm-svn: 263004
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r-- | clang/lib/Index/IndexingContext.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index 238de57ccd4..0a235afc28b 100644 --- a/clang/lib/Index/IndexingContext.cpp +++ b/clang/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<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; |