summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-21 02:45:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-21 02:45:19 +0000
commitcf4bdde33a0450f212e7577b71a7bcfe5213cb15 (patch)
tree0f26b261f986553682e4a0eb67867313b41c15f5 /clang/lib/AST/DeclBase.cpp
parent8d981962c043ed5111f8e941a1501e100e54f8f7 (diff)
downloadbcm5719-llvm-cf4bdde33a0450f212e7577b71a7bcfe5213cb15.tar.gz
bcm5719-llvm-cf4bdde33a0450f212e7577b71a7bcfe5213cb15.zip
Cleanup: remove artificial division between lookup results and const lookup
results. No-one was ever modifying a lookup result, and it would not be reasonable to do so. llvm-svn: 230123
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 30cca6f6b1b..17f542dc9a2 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -1585,7 +1585,7 @@ UsingDirectiveDecl *DeclContext::udir_iterator::operator*() const {
DeclContext::udir_range DeclContext::using_directives() const {
// FIXME: Use something more efficient than normal lookup for using
// directives. In C++, using directives are looked up more than anything else.
- lookup_const_result Result = lookup(UsingDirectiveDecl::getName());
+ lookup_result Result = lookup(UsingDirectiveDecl::getName());
return udir_range(Result.begin(), Result.end());
}
OpenPOWER on IntegriCloud