Silence the compiler warning differently. The

original method caused gcc-4.2 to complain.

llvm-svn: 51186
This commit is contained in:
Duncan Sands 2008-05-16 09:19:16 +00:00
parent 2ad66b343d
commit a018f1f47e

View 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;