Skip to content

Commit e70fb00

Browse files
committed
[nfc] Replace count() with find().
Addresses the post commit review comment in #35964 and replaces "count()" with "find() != end()".
1 parent 6eb00d5 commit e70fb00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,8 @@ namespace {
34753475

34763476
// If we've already imported this decl, skip it so we don't add the same
34773477
// member twice.
3478-
if (Impl.ImportedDecls.count({nd->getCanonicalDecl(), getVersion()}))
3478+
if (Impl.ImportedDecls.find({nd->getCanonicalDecl(), getVersion()}) !=
3479+
Impl.ImportedDecls.end())
34793480
continue;
34803481

34813482
auto member = Impl.importDecl(nd, getActiveSwiftVersion());

0 commit comments

Comments
 (0)