[llvm-commits] [llvm] r136831 - /llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Chandler Carruth
chandlerc at gmail.com
Wed Aug 3 16:07:27 PDT 2011
Author: chandlerc
Date: Wed Aug 3 18:07:27 2011
New Revision: 136831
URL: http://llvm.org/viewvc/llvm-project?rev=136831&view=rev
Log:
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)) {
^
Modified:
llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=136831&r1=136830&r2=136831&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Wed Aug 3 18:07:27 2011
@@ -1170,6 +1170,7 @@
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 @@
Cand.IntvIdx = SE->openIntv();
DEBUG(dbgs() << "Split for compact region in " << B << " bundles, intv "
<< Cand.IntvIdx << ".\n");
+ (void)B;
}
}
More information about the llvm-commits
mailing list