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

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 8 18:53:13 PST 2016


Author: akirtzidis
Date: Tue Mar  8 20:53:12 2016
New Revision: 262991

URL: http://llvm.org/viewvc/llvm-project?rev=262991&view=rev
Log:
[index] Add a message for the assertion, NFC.

Modified:
    cfe/trunk/lib/Index/IndexingContext.cpp

Modified: cfe/trunk/lib/Index/IndexingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/IndexingContext.cpp?rev=262991&r1=262990&r2=262991&view=diff
==============================================================================
--- cfe/trunk/lib/Index/IndexingContext.cpp (original)
+++ cfe/trunk/lib/Index/IndexingContext.cpp Tue Mar  8 20:53:12 2016
@@ -299,7 +299,8 @@ bool IndexingContext::handleDeclOccurren
     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);




More information about the cfe-commits mailing list