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 | 6517a637609946153088a5d0e37b484968c4ca5c (patch) | |
tree | db3ac9b4c71568a648d8cb0fb48f84bc72362439 | |
parent | d12e969656604f472a1af2a62a2dc4eb8ff664e1 (diff) | |
download | external_llvm-6517a637609946153088a5d0e37b484968c4ca5c.zip external_llvm-6517a637609946153088a5d0e37b484968c4ca5c.tar.gz external_llvm-6517a637609946153088a5d0e37b484968c4ca5c.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index f0d9f36..f84b3f0 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; |