Fix GCC warning:
authorNick Lewycky <nicholas@mxc.ca>
Sat, 18 Dec 2010 01:05:55 +0000 (01:05 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 18 Dec 2010 01:05:55 +0000 (01:05 +0000)
  lib/CodeGen/RegAllocGreedy.cpp:311: error: unused variable 'PhysReg' [-Wunused-variable]

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

lib/CodeGen/RegAllocGreedy.cpp

index 12a1cfcc9014c12fc41bfb09b2f660242377cd4a..50e45466603c9f6c71428f6acba2821a0ee3080f 100644 (file)
@@ -310,6 +310,7 @@ unsigned RAGreedy::trySplit(LiveInterval &VirtReg, AllocationOrder &Order,
   for (unsigned i = 0, e = SplitLoops.size(); i != e; ++i) {
     if (unsigned PhysReg = findInterferenceFreeReg(SplitLoops[i],
                                                    VirtReg, Order)) {
+      (void)PhysReg;
       Loop = SplitLoops[i];
       DEBUG(dbgs() << "  " << TRI->getName(PhysReg)
                    << " has no interferences in " << *Loop << '\n');