diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-03-09 02:12:40 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-03-09 02:12:40 +0000 |
| commit | 0ad65ac81615c76878f960f1dcb5d9fe27832ed5 (patch) | |
| tree | a3144195e6bedd207e31c9898a9353720834791b /clang/lib/Index | |
| parent | 3dbf9a31b5bea68633700ddf941e20e88757a749 (diff) | |
| download | bcm5719-llvm-0ad65ac81615c76878f960f1dcb5d9fe27832ed5.tar.gz bcm5719-llvm-0ad65ac81615c76878f960f1dcb5d9fe27832ed5.zip | |
[index] Fix assertion hit when indexing re-declarations of built-in functions.
llvm-svn: 262984
Diffstat (limited to 'clang/lib/Index')
| -rw-r--r-- | clang/lib/Index/IndexingContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp index 204e4300f87..fe814ff25a6 100644 --- a/clang/lib/Index/IndexingContext.cpp +++ b/clang/lib/Index/IndexingContext.cpp @@ -298,6 +298,7 @@ bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc, if (Parent) Parent = getCanonicalDecl(Parent); assert(!Parent || !Parent->isImplicit() || + isa<FunctionDecl>(Parent) || isa<ObjCInterfaceDecl>(Parent) || isa<ObjCMethodDecl>(Parent)); SmallVector<SymbolRelation, 6> FinalRelations; |

