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:
3ed41d6
)
[index] Add a message for the assertion, NFC.
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 9 Mar 2016 02:53:12 +0000
(
02:53
+0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 9 Mar 2016 02:53:12 +0000
(
02:53
+0000)
llvm-svn: 262991
clang/lib/Index/IndexingContext.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Index/IndexingContext.cpp
b/clang/lib/Index/IndexingContext.cpp
index fe814ff25a643abb53f51b647a99434c14f1c614..238de57ccd49e1021bf89f3a86d3c237c71dcbfa 100644
(file)
--- a/
clang/lib/Index/IndexingContext.cpp
+++ b/
clang/lib/Index/IndexingContext.cpp
@@
-299,7
+299,8
@@
bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc,
Parent = getCanonicalDecl(Parent);
assert(!Parent || !Parent->isImplicit() ||
isa<FunctionDecl>(Parent) ||
- isa<ObjCInterfaceDecl>(Parent) || isa<ObjCMethodDecl>(Parent));
+ isa<ObjCInterfaceDecl>(Parent) || isa<ObjCMethodDecl>(Parent) &&
+ "unexpected implicit parent!");
SmallVector<SymbolRelation, 6> FinalRelations;
FinalRelations.reserve(Relations.size()+1);