summaryrefslogtreecommitdiffstats
path: root/clang/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
commit17a1bfa9d84d0298207f8d7631085534316d7c43 (patch)
tree85c54bd7a7df290f8b2da35414e3c22af81a2a74 /clang/lib/AST/DeclBase.cpp
parentaf06b977f9aaae7440032d6754729365d11f00ec (diff)
downloadbcm5719-llvm-17a1bfa9d84d0298207f8d7631085534316d7c43.tar.gz
bcm5719-llvm-17a1bfa9d84d0298207f8d7631085534316d7c43.zip
reduce # const_casts, no functionality change.
llvm-svn: 67861
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 47059d952c1..ef9dc7622f1 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud