diff options
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index cf612c2f3c..f14dc3c717 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -567,8 +567,8 @@ DeclContext::lookup(ASTContext &Context, DeclarationName Name) const { return const_cast<DeclContext*>(this)->lookup(Context, Name); } -DeclContext *DeclContext::getLookupContext() { - DeclContext *Ctx = this; +const DeclContext *DeclContext::getLookupContext() const { + const DeclContext *Ctx = this; while (Ctx->isTransparentContext()) Ctx = Ctx->getParent(); return Ctx; |