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
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user