[Gardening] Change calls of getName().isOperator() to isOperator()

This commit is contained in:
Alex Hoppen
2017-03-05 16:19:28 +00:00
parent 7af65d9e09
commit 1b7055db5a
9 changed files with 11 additions and 12 deletions

View File

@@ -180,7 +180,7 @@ void SourceLookupCache::doPopulateCache(Range decls,
bool onlyOperators) {
for (Decl *D : decls) {
if (ValueDecl *VD = dyn_cast<ValueDecl>(D))
if (onlyOperators ? VD->getName().isOperator() : VD->hasName()) {
if (onlyOperators ? VD->isOperator() : VD->hasName()) {
// Cache the value under both its compound name and its full name.
TopLevelValues.add(VD);
}