From: Argyrios Kyrtzidis Date: Wed, 9 Mar 2016 02:53:12 +0000 (+0000) Subject: [index] Add a message for the assertion, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58eceded343b5503538761bb71db6d518be40f6b;p=clang [index] Add a message for the assertion, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262991 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Index/IndexingContext.cpp b/lib/Index/IndexingContext.cpp index fe814ff25a..238de57ccd 100644 --- a/lib/Index/IndexingContext.cpp +++ b/lib/Index/IndexingContext.cpp @@ -299,7 +299,8 @@ bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc, Parent = getCanonicalDecl(Parent); assert(!Parent || !Parent->isImplicit() || isa(Parent) || - isa(Parent) || isa(Parent)); + isa(Parent) || isa(Parent) && + "unexpected implicit parent!"); SmallVector FinalRelations; FinalRelations.reserve(Relations.size()+1);