diff options
Diffstat (limited to 'clang/lib/Index/Entity.cpp')
-rw-r--r-- | clang/lib/Index/Entity.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index feed3e4c807..cc45e25cc76 100644 --- a/clang/lib/Index/Entity.cpp +++ b/clang/lib/Index/Entity.cpp @@ -138,6 +138,8 @@ Entity EntityImpl::get(Decl *D, ProgramImpl &Prog) { // Entity Implementation //===----------------------------------------------------------------------===// +Entity::Entity(Decl *D) : Val(D->getCanonicalDecl()) { } + /// \brief Find the Decl that can be referred to by this entity. Decl *Entity::getDecl(ASTContext &AST) { if (isInvalid()) |