mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Replace usages of StringRef.find(Key) != StringRef::npos to StringRef.contains(Key)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user