Fix some warnings from Clang in release builds:
authorChandler Carruth <chandlerc@gmail.com>
Wed, 3 Aug 2011 23:07:27 +0000 (23:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 3 Aug 2011 23:07:27 +0000 (23:07 +0000)
lib/CodeGen/RegAllocGreedy.cpp:1176:18: warning: unused variable 'B' [-Wunused-variable]
    if (unsigned B = Cand.getBundles(BundleCand, BestCand)) {
                 ^
lib/CodeGen/RegAllocGreedy.cpp:1188:18: warning: unused variable 'B' [-Wunused-variable]
    if (unsigned B = Cand.getBundles(BundleCand, 0)) {
                 ^

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136831 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocGreedy.cpp

index 1afe1f71e9f9e6858e0c0fd7d62d81391e3e52cd..1cbd5a925f2cb5aaae2a22b2273ce6dc243b34e1 100644 (file)
@@ -1170,6 +1170,7 @@ unsigned RAGreedy::tryRegionSplit(LiveInterval &VirtReg, AllocationOrder &Order,
       Cand.IntvIdx = SE->openIntv();
       DEBUG(dbgs() << "Split for " << PrintReg(Cand.PhysReg, TRI) << " in "
                    << B << " bundles, intv " << Cand.IntvIdx << ".\n");
+      (void)B;
     }
   }
 
@@ -1182,6 +1183,7 @@ unsigned RAGreedy::tryRegionSplit(LiveInterval &VirtReg, AllocationOrder &Order,
       Cand.IntvIdx = SE->openIntv();
       DEBUG(dbgs() << "Split for compact region in " << B << " bundles, intv "
                    << Cand.IntvIdx << ".\n");
+      (void)B;
     }
   }