[llvm] r194021 - Make sure we don't get a warning from this variable that is only used

Reed Kotler rkotler at mips.com
Mon Nov 4 14:42:17 PST 2013


Author: rkotler
Date: Mon Nov  4 16:42:17 2013
New Revision: 194021

URL: http://llvm.org/viewvc/llvm-project?rev=194021&view=rev
Log:
Make sure we don't get a warning from this variable that is only used
when compiling with DEBUG.


Modified:
    llvm/trunk/lib/Target/Mips/MipsConstantIslandPass.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsConstantIslandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsConstantIslandPass.cpp?rev=194021&r1=194020&r2=194021&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsConstantIslandPass.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsConstantIslandPass.cpp Mon Nov  4 16:42:17 2013
@@ -433,6 +433,7 @@ bool MipsConstantIslands::runOnMachineFu
   // Iteratively place constant pool entries and fix up branches until there
   // is no change.
   unsigned NoCPIters = 0, NoBRIters = 0;
+  (void)NoBRIters;
   while (true) {
     DEBUG(dbgs() << "Beginning CP iteration #" << NoCPIters << '\n');
     bool CPChange = false;





More information about the llvm-commits mailing list