aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-27 19:19:59 +0000
committerChris Lattner <sabre@nondot.org>2009-03-27 19:19:59 +0000
commit0cf2b1990c82121d03a004dafe498ba43bf4b42a (patch)
tree764476eff60f77558ef4274184a30b6418150f04 /lib/AST/DeclBase.cpp
parentf8080a39e6e576a820dadb7a4e0bcf5e7c8ffa35 (diff)
reduce # const_casts, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index 47059d952c..ef9dc7622f 100644
--- a/lib/AST/DeclBase.cpp
+++ b/lib/AST/DeclBase.cpp
@@ -580,8 +580,8 @@ DeclContext::lookup(DeclarationName Name) const {
return const_cast<DeclContext*>(this)->lookup(Name);
}
-const DeclContext *DeclContext::getLookupContext() const {
- const DeclContext *Ctx = this;
+DeclContext *DeclContext::getLookupContext() {
+ DeclContext *Ctx = this;
// Skip through transparent contexts.
while (Ctx->isTransparentContext())
Ctx = Ctx->getParent();