diff options
Diffstat (limited to 'lib/Index/Entity.cpp')
-rw-r--r-- | lib/Index/Entity.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Index/Entity.cpp b/lib/Index/Entity.cpp index 85b4f2e196..d33110074f 100644 --- a/lib/Index/Entity.cpp +++ b/lib/Index/Entity.cpp @@ -59,11 +59,12 @@ Entity EntityGetter::VisitNamedDecl(NamedDecl *D) { return Entity(D); // FIXME: Only works for DeclarationNames that are identifiers. + // Treats other DeclarationNames as internal Decls for now.. DeclarationName Name = D->getDeclName(); if (!Name.isIdentifier()) - return Entity(); + return Entity(D); IdentifierInfo *II = Name.getAsIdentifierInfo(); if (!II) |