Skip to content

Commit d6a6e25

Browse files
[AST] Avoid repeated hash lookups (NFC) (#109603)
1 parent ff9f1a6 commit d6a6e25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12587,8 +12587,7 @@ void ASTContext::forEachMultiversionedFunctionVersion(
1258712587
FD->getDeclContext()->getRedeclContext()->lookup(FD->getDeclName())) {
1258812588
FunctionDecl *CurFD = CurDecl->getAsFunction()->getMostRecentDecl();
1258912589
if (CurFD && hasSameType(CurFD->getType(), FD->getType()) &&
12590-
!SeenDecls.contains(CurFD)) {
12591-
SeenDecls.insert(CurFD);
12590+
SeenDecls.insert(CurFD).second) {
1259212591
Pred(CurFD);
1259312592
}
1259412593
}

0 commit comments

Comments
 (0)