Silence unused variable warnings from when assertions are disabled.
authorKaelyn Uhrain <rikka@google.com>
Thu, 24 May 2012 23:37:49 +0000 (23:37 +0000)
committerKaelyn Uhrain <rikka@google.com>
Thu, 24 May 2012 23:37:49 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index 662b16fa0a0d1245986f0a9d805a9faeea61db5c..4c12c0e5d22a4f41b5f44cd4991b00d86a0fac66 100644 (file)
@@ -1174,6 +1174,7 @@ SUnit *ConvergingScheduler::pickNode(bool &IsTopNode) {
       CandResult TopResult =
         pickNodeFromQueue(Top.Available, DAG->getTopRPTracker(), TopCand);
       assert(TopResult != NoCand && "failed to find the first candidate");
+      (void)TopResult;
       SU = TopCand.SU;
     }
     IsTopNode = true;
@@ -1185,6 +1186,7 @@ SUnit *ConvergingScheduler::pickNode(bool &IsTopNode) {
       CandResult BotResult =
         pickNodeFromQueue(Bot.Available, DAG->getBotRPTracker(), BotCand);
       assert(BotResult != NoCand && "failed to find the first candidate");
+      (void)BotResult;
       SU = BotCand.SU;
     }
     IsTopNode = false;