[PATCH] D44583: Quiet unused variable warnings in Release builds

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 16 14:24:26 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL327745: Quiet unused variable warnings. NFC. (authored by dlkreitz, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D44583?vs=138762&id=138769#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D44583

Files:
  llvm/trunk/lib/CodeGen/MachinePipeliner.cpp


Index: llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
+++ llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
@@ -3918,6 +3918,7 @@
   std::sort(Indices.begin(), Indices.end(), CompareKey);
 
   bool Valid = true;
+  (void)Valid;
   // for each SUnit in the NodeOrder, check whether
   // it appears after both a successor and a predecessor
   // of the SUnit. If this is the case, and the SUnit
@@ -3932,6 +3933,8 @@
 
     SUnit *Succ;
     SUnit *Pred;
+    (void)Succ;
+    (void)Pred;
 
     for (SDep &PredEdge : SU->Preds) {
       SUnit *PredSU = PredEdge.getSUnit();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44583.138769.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180316/9856e6f8/attachment-0001.bin>


More information about the llvm-commits mailing list