================
@@ -1637,7 +1637,8 @@ void ScheduleDAGRRList::ListScheduleBottomUp() {
}
// Reverse the order if it is bottom up.
- std::reverse(Sequence.begin(), Sequence.end());
+ if (!Sequence.empty())
+ std::reverse(Sequence.begin(), Sequence.end());
----------------
RKSimon wrote:
where did this come from?
https://github.com/llvm/llvm-project/pull/179150
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits