Give comparator const call operator

llvm-svn: 292043
This commit is contained in:
Eric Fiselier 2017-01-15 02:06:44 +00:00
parent 483ffa3365
commit 0a9eb89cf9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
};