From: Duncan Sands Date: Fri, 16 May 2008 09:19:16 +0000 (+0000) Subject: Silence the compiler warning differently. The X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=419cafb9fb6e77487197933714abec0426ae06c0;p=oota-llvm.git Silence the compiler warning differently. The original method caused gcc-4.2 to complain. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51186 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;