Replace usages of .find(Key) != .end() to .contains(Key) in llvm sets

This commit is contained in:
Minhyuk Kim
2020-12-29 00:16:53 +09:00
parent e924cf6104
commit 53d1fc481e
11 changed files with 21 additions and 20 deletions

View File

@@ -424,7 +424,7 @@ getDeclsFromCrossImportOverlay(ModuleDecl *Overlay, ModuleDecl *Declaring,
return false;
// Ignore an imports of modules also imported by the underlying module.
if (PrevImported.find(Imported) != PrevImported.end())
if (PrevImported.contains(Imported))
return false;
}
if (auto *VD = dyn_cast<ValueDecl>(D)) {