From bb1744ec1531fff3fd22fdfcd65f0f72d99c4fa5 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 18 Dec 2010 01:05:55 +0000 Subject: [PATCH] Fix GCC warning: 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 12a1cfcc901..50e45466603 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -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'); -- 2.34.1