projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df04572
)
Silence the compiler warning differently. The
author
Duncan Sands
<baldrick@free.fr>
Fri, 16 May 2008 09:19:16 +0000
(09:19 +0000)
committer
Duncan 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index f0d9f36d08475ee8a5eb7e9fb141dd8943ba87c6..f84b3f0557795d63c3c2e41fcffc9a608caca0b7 100644
(file)
--- 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;