mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:21:09 +01:00
Make more use of llvm STLExtras (#4668)
This is essentially the result of looking at `.begin()` uses. We also frequently do `std::shuffle`, but unfortunately STLExtras doesn't provide a wrapper for that.
This commit is contained in:
@@ -201,7 +201,7 @@ auto NodeExtractor::MatchesNodeIdOneOf(
|
||||
*trace_ << "\n";
|
||||
}
|
||||
return false;
|
||||
} else if (std::find(kinds.begin(), kinds.end(), node_kind) == kinds.end()) {
|
||||
} else if (llvm::find(kinds, node_kind) == kinds.end()) {
|
||||
if (trace_) {
|
||||
*trace_ << "NodeIdOneOf error: wrong kind " << node_kind << ", expected ";
|
||||
trace_kinds();
|
||||
|
||||
Reference in New Issue
Block a user