Skip to content

Commit

Permalink
[flang] Use llvm::any_of (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Oct 21, 2023
1 parent e5ef5b9 commit dc554bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flang/lib/Semantics/data-to-inits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit dc554bd

Please sign in to comment.