forked from OSchip/llvm-project
[index] Add a message for the assertion, NFC.
llvm-svn: 262991
This commit is contained in:
parent
3ed41d6aa4
commit
96e1479326
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue