Skip to content

Commit f3327fb

Browse files
authored
Merge pull request #62690 from valeriyvan/LoopRegionAnalysis
2 parents 9cb3641 + 6661554 commit f3327fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Analysis/LoopRegionAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ void LoopRegionFunctionInfo::print(raw_ostream &os) const {
871871
auto ExitingSubRegs = R->getExitingSubregions();
872872
std::copy(ExitingSubRegs.begin(), ExitingSubRegs.end(),
873873
std::back_inserter(ExitingSubregions));
874-
std::sort(ExitingSubregions.begin(), ExitingSubregions.begin());
874+
std::sort(ExitingSubregions.begin(), ExitingSubregions.end());
875875
for (unsigned SubregionID : ExitingSubregions) {
876876
os << "\n ";
877877
LoopRegion *Subregion = getRegion(SubregionID);

0 commit comments

Comments
 (0)