diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-05-16 09:19:16 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-05-16 09:19:16 +0000 |
| commit | 70424d195adbe693d668ea8a94baa38cb8f3661c (patch) | |
| tree | 1269e1d0f8e7e3c8d59781ed20ffab3c839bb319 /llvm | |
| parent | c5c7a290e9d8f54cca679abf21c1ac1838c50323 (diff) | |
| download | bcm5719-llvm-70424d195adbe693d668ea8a94baa38cb8f3661c.tar.gz bcm5719-llvm-70424d195adbe693d668ea8a94baa38cb8f3661c.zip | |
Silence the compiler warning differently. The
original method caused gcc-4.2 to complain.
llvm-svn: 51186
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index f0d9f36d084..f84b3f05577 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/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; |

