diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index f0d9f36d084..f84b3f05577 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1317,7 +1317,7 @@ namespace { void remove(SUnit *SU) { assert(!Queue.empty() && "Queue is empty!"); size_t RemovedNum = Queue.erase(SU); - RemovedNum; // Silence compiler warning. + RemovedNum = RemovedNum; // Silence compiler warning. assert(RemovedNum > 0 && "Not in queue!"); assert(RemovedNum == 1 && "Multiple times in the queue!"); SU->NodeQueueId = 0;