Silence the compiler warning differently. The
authorDuncan Sands <baldrick@free.fr>
Fri, 16 May 2008 09:19:16 +0000 (09:19 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 16 May 2008 09:19:16 +0000 (09:19 +0000)
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

lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

index f0d9f36d08475ee8a5eb7e9fb141dd8943ba87c6..f84b3f0557795d63c3c2e41fcffc9a608caca0b7 100644 (file)
@@ -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;