projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef549a8
)
Pacify gcc's parenthesis warning, which doesn't realize that parens don't matter...
author
Manuel Klimek
<klimek@google.com>
Wed, 9 Mar 2016 10:06:45 +0000
(10:06 +0000)
committer
Manuel Klimek
<klimek@google.com>
Wed, 9 Mar 2016 10:06:45 +0000
(10:06 +0000)
llvm-svn: 263004
clang/lib/Index/IndexingContext.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Index/IndexingContext.cpp
b/clang/lib/Index/IndexingContext.cpp
index 238de57ccd49e1021bf89f3a86d3c237c71dcbfa..0a235afc28bdb7dca846cb52f86b1ff3604dda63 100644
(file)
--- 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;