File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ static std::optional<llvm::Triple>
148
148
getHIPOffloadTargetTriple (const Driver &D, const ArgList &Args) {
149
149
if (!Args.hasArg (options::OPT_offload_EQ)) {
150
150
auto OffloadArchs = Args.getAllArgValues (options::OPT_offload_arch_EQ);
151
- if (llvm::find (OffloadArchs, " amdgcnspirv" ) != OffloadArchs. cend ( )) {
151
+ if (llvm::is_contained (OffloadArchs, " amdgcnspirv" )) {
152
152
if (OffloadArchs.size () == 1 )
153
153
return llvm::Triple (" spirv64-amd-amdhsa" );
154
154
// Mixing specific & SPIR-V compilation is not supported for now.
Original file line number Diff line number Diff line change @@ -1014,8 +1014,7 @@ class AnnotatingParser {
1014
1014
// The case next is colon, it is not a operator of identifier.
1015
1015
if (!Tok.Next || Tok.Next ->is (tok::colon))
1016
1016
return false ;
1017
- return std::find (Opes.begin (), Opes.end (), Tok.TokenText .str ()) !=
1018
- Opes.end ();
1017
+ return llvm::is_contained (Opes, Tok.TokenText .str ());
1019
1018
}
1020
1019
1021
1020
// SimpleValue6 ::= "(" DagArg [DagArgList] ")"
You can’t perform that action at this time.
0 commit comments