summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-08-03 23:07:27 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-08-03 23:07:27 +0000
commit32668ea7a290ee1cb6bfe8cd677cdd4e5df05b4d (patch)
treedd8dafffe48a4d0cdff25dbb8cf9a224920855e4 /lib/CodeGen/RegAllocGreedy.cpp
parent0767267790e5cc91ffe3cc318d22f043b2633b26 (diff)
downloadllvm-32668ea7a290ee1cb6bfe8cd677cdd4e5df05b4d.tar.gz
llvm-32668ea7a290ee1cb6bfe8cd677cdd4e5df05b4d.tar.bz2
llvm-32668ea7a290ee1cb6bfe8cd677cdd4e5df05b4d.tar.xz
Fix some warnings from Clang in release builds:
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
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 1afe1f71e9..1cbd5a925f 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -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;
}
}