summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-09 02:53:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-09 02:53:12 +0000
commit96e147932684ac9b3a9845a74cf02273bfa98ae3 (patch)
treeb198e04bb292562d2a171273ef51ca9a1988840f /clang/lib/Index/IndexingContext.cpp
parent3ed41d6aa435fc4b3dd56e6e6e7dd8bba4cd8977 (diff)
downloadbcm5719-llvm-96e147932684ac9b3a9845a74cf02273bfa98ae3.tar.gz
bcm5719-llvm-96e147932684ac9b3a9845a74cf02273bfa98ae3.zip
[index] Add a message for the assertion, NFC.
llvm-svn: 262991
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp3
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);
OpenPOWER on IntegriCloud