diff options
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r-- | clang/lib/Index/IndexingContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index fe814ff25a6..238de57ccd4 100644 --- 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); |