We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ef5b9 commit dc554bdCopy full SHA for dc554bd
flang/lib/Semantics/data-to-inits.cpp
@@ -773,8 +773,7 @@ static bool CombineEquivalencedInitialization(
773
return false;
774
}
775
// 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()) {
+ if (llvm::any_of(associated, [](SymbolRef ref) { return IsSaved(*ref); })) {
778
// Create a compiler array temp that overlaps all the items.
779
SourceName name{exprAnalyzer.context().GetTempName(scope)};
780
auto emplaced{
0 commit comments