Skip to content

Commit af447dd

Browse files
[Serialization] Use llvm::is_contained (NFC)
1 parent 7552b4d commit af447dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10115,8 +10115,7 @@ void ASTReader::pushExternalDeclIntoScope(NamedDecl *D, DeclarationName Name) {
1011510115
// Adding the decl to IdResolver may have failed because it was already in
1011610116
// (even though it was not added in scope). If it is already in, make sure
1011710117
// it gets in the scope as well.
10118-
if (std::find(SemaObj->IdResolver.begin(Name),
10119-
SemaObj->IdResolver.end(), D) != SemaObj->IdResolver.end())
10118+
if (llvm::is_contained(SemaObj->IdResolver.decls(Name), D))
1012010119
SemaObj->TUScope->AddDecl(D);
1012110120
}
1012210121
}

0 commit comments

Comments
 (0)