aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Index/Entity.h2
-rw-r--r--lib/Index/Entity.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Index/Entity.h b/include/clang/Index/Entity.h
index cd87e4ccc1..2b5adc6882 100644
--- a/include/clang/Index/Entity.h
+++ b/include/clang/Index/Entity.h
@@ -55,7 +55,7 @@ public:
Entity() { }
/// \brief Find the Decl that can be referred to by this entity.
- Decl *getDecl(ASTContext &AST);
+ Decl *getDecl(ASTContext &AST) const;
/// \brief Get a printable name for debugging purpose.
std::string getPrintableName() const;
diff --git a/lib/Index/Entity.cpp b/lib/Index/Entity.cpp
index 25061e6150..85b4f2e196 100644
--- a/lib/Index/Entity.cpp
+++ b/lib/Index/Entity.cpp
@@ -145,7 +145,7 @@ std::string EntityImpl::getPrintableName() {
Entity::Entity(Decl *D) : Val(D->getCanonicalDecl()) { }
/// \brief Find the Decl that can be referred to by this entity.
-Decl *Entity::getDecl(ASTContext &AST) {
+Decl *Entity::getDecl(ASTContext &AST) const {
if (isInvalid())
return 0;