]> granicus.if.org Git - llvm/commitdiff
Give comparator const call operator
authorEric Fiselier <eric@efcs.ca>
Sun, 15 Jan 2017 02:06:44 +0000 (02:06 +0000)
committerEric Fiselier <eric@efcs.ca>
Sun, 15 Jan 2017 02:06:44 +0000 (02:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292043 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 1c7cbc7edf9a310713da1e153906f983da35b53c..ff4cd3db421faa75a5a65284f1ace05fa04c49cf 100644 (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;
     }
   };