[llvm-commits] [llvm] r51186 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

Duncan Sands baldrick at free.fr
Fri May 16 02:19:17 PDT 2008


Author: baldrick
Date: Fri May 16 04:19:16 2008
New Revision: 51186

URL: http://llvm.org/viewvc/llvm-project?rev=51186&view=rev
Log:
Silence the compiler warning differently.  The
original method caused gcc-4.2 to complain.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp?rev=51186&r1=51185&r2=51186&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Fri May 16 04:19:16 2008
@@ -1317,7 +1317,7 @@
     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;





More information about the llvm-commits mailing list