From 96e147932684ac9b3a9845a74cf02273bfa98ae3 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 9 Mar 2016 02:53:12 +0000 Subject: [index] Add a message for the assertion, NFC. llvm-svn: 262991 --- clang/lib/Index/IndexingContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Index/IndexingContext.cpp') 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(Parent) || - isa(Parent) || isa(Parent)); + isa(Parent) || isa(Parent) && + "unexpected implicit parent!"); SmallVector FinalRelations; FinalRelations.reserve(Relations.size()+1); -- cgit v1.2.3