Give comparator const call operator
llvm-svn: 292043
This commit is contained in:
@@ -3264,7 +3264,7 @@ void BoUpSLP::scheduleBlock(BlockScheduling *BS) {
|
||||
// sorted by the original instruction location. This lets the final schedule
|
||||
// be as close as possible to the original instruction order.
|
||||
struct ScheduleDataCompare {
|
||||
bool operator()(ScheduleData *SD1, ScheduleData *SD2) {
|
||||
bool operator()(ScheduleData *SD1, ScheduleData *SD2) const {
|
||||
return SD2->SchedulingPriority < SD1->SchedulingPriority;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user