Replace usages of StringRef.find(Key) != StringRef::npos to StringRef.contains(Key)

This commit is contained in:
Minhyuk Kim
2020-12-29 00:09:16 +09:00
parent 187f4dbaf8
commit e924cf6104
19 changed files with 31 additions and 41 deletions

View File

@@ -85,7 +85,7 @@ void UIdent::print(llvm::raw_ostream &OS) const {
void *UIDRegistryImpl::get(StringRef Str) {
assert(!Str.empty());
assert(Str.find(' ') == StringRef::npos);
assert(!Str.contains(' '));
EntryTy *Ptr = 0;
Queue.dispatchSync([&]{
HashTableTy::iterator It = HashTable.find(Str);