Skip to content

Commit 8cc5e96

Browse files
authored
Merge pull request #35990 from zoecarver/cxx/gardening/count-to-find
2 parents 1d6726a + e70fb00 commit 8cc5e96

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)