Skip to content

Commit dc554bd

Browse files
[flang] Use llvm::any_of (NFC)
1 parent e5ef5b9 commit dc554bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flang/lib/Semantics/data-to-inits.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,7 @@ static bool CombineEquivalencedInitialization(
773773
return false;
774774
}
775775
// If the items are in static storage, save the final initialization.
776-
if (std::find_if(associated.begin(), associated.end(),
777-
[](SymbolRef ref) { return IsSaved(*ref); }) != associated.end()) {
776+
if (llvm::any_of(associated, [](SymbolRef ref) { return IsSaved(*ref); })) {
778777
// Create a compiler array temp that overlaps all the items.
779778
SourceName name{exprAnalyzer.context().GetTempName(scope)};
780779
auto emplaced{

0 commit comments

Comments
 (0)