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 54f9cae commit 6661554Copy full SHA for 6661554
lib/SILOptimizer/Analysis/LoopRegionAnalysis.cpp
@@ -871,7 +871,7 @@ void LoopRegionFunctionInfo::print(raw_ostream &os) const {
871
auto ExitingSubRegs = R->getExitingSubregions();
872
std::copy(ExitingSubRegs.begin(), ExitingSubRegs.end(),
873
std::back_inserter(ExitingSubregions));
874
- std::sort(ExitingSubregions.begin(), ExitingSubregions.begin());
+ std::sort(ExitingSubregions.begin(), ExitingSubregions.end());
875
for (unsigned SubregionID : ExitingSubregions) {
876
os << "\n ";
877
LoopRegion *Subregion = getRegion(SubregionID);
0 commit comments