Skip to content

Commit e003326

Browse files
[Sema] Use llvm::is_contained (NFC) (#140455)
1 parent b12d68e commit e003326

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9155,9 +9155,7 @@ static bool IsStdFunction(const FunctionDecl *FDecl,
91559155
enum class MathCheck { NaN, Inf };
91569156
static bool IsInfOrNanFunction(StringRef calleeName, MathCheck Check) {
91579157
auto MatchesAny = [&](std::initializer_list<llvm::StringRef> names) {
9158-
return std::any_of(names.begin(), names.end(), [&](llvm::StringRef name) {
9159-
return calleeName == name;
9160-
});
9158+
return llvm::is_contained(names, calleeName);
91619159
};
91629160

91639161
switch (Check) {

0 commit comments

Comments
 (0)