Skip to content

Commit 8920546

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [Sema] Use llvm::is_contained (NFC) (#139833)
2 parents f2e4322 + 65eb5e8 commit 8920546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaARM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ bool SemaARM::CheckImmediateArg(CallExpr *TheCall, unsigned CheckTy,
389389
if (SemaRef.BuiltinConstantArg(TheCall, ArgIdx, Imm))
390390
return true;
391391

392-
if (std::find(Set.begin(), Set.end(), Imm.getSExtValue()) == Set.end())
392+
if (!llvm::is_contained(Set, Imm.getSExtValue()))
393393
return Diag(TheCall->getBeginLoc(), ErrDiag) << Arg->getSourceRange();
394394
return false;
395395
};

0 commit comments

Comments
 (0)