diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-27 19:19:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-27 19:19:59 +0000 |
commit | 17a1bfa9d84d0298207f8d7631085534316d7c43 (patch) | |
tree | 85c54bd7a7df290f8b2da35414e3c22af81a2a74 /clang/lib/AST/DeclBase.cpp | |
parent | af06b977f9aaae7440032d6754729365d11f00ec (diff) | |
download | bcm5719-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.cpp | 4 |
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(); |