[flang] Use llvm::any_of (NFC)

This commit is contained in:
Kazu Hirata
2023-10-20 23:45:16 -07:00
parent e5ef5b9e32
commit dc554bd06f

View File

@@ -773,8 +773,7 @@ static bool CombineEquivalencedInitialization(
return false;
}
// If the items are in static storage, save the final initialization.
if (std::find_if(associated.begin(), associated.end(),
[](SymbolRef ref) { return IsSaved(*ref); }) != associated.end()) {
if (llvm::any_of(associated, [](SymbolRef ref) { return IsSaved(*ref); })) {
// Create a compiler array temp that overlaps all the items.
SourceName name{exprAnalyzer.context().GetTempName(scope)};
auto emplaced{