[index] Add a message for the assertion, NFC.

llvm-svn: 262991
This commit is contained in:
Argyrios Kyrtzidis 2016-03-09 02:53:12 +00:00
parent 3ed41d6aa4
commit 96e1479326
1 changed files with 2 additions and 1 deletions

View File

@ -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);