summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/InstPrinter
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-06-23 08:09:30 +0000
committerCraig Topper <craig.topper@gmail.com>2012-06-23 08:09:30 +0000
commit0a2f793d6e24acd00d9209b46436b4899feb1cdb (patch)
tree72e6a2bd038cdcd719b07d7c5f479e026796e5c3 /lib/Target/PowerPC/InstPrinter
parent3ed920f308d1fb20999bf8bf6247af36261f6b7d (diff)
downloadllvm-0a2f793d6e24acd00d9209b46436b4899feb1cdb.tar.gz
llvm-0a2f793d6e24acd00d9209b46436b4899feb1cdb.tar.bz2
llvm-0a2f793d6e24acd00d9209b46436b4899feb1cdb.tar.xz
Silence an unused variable warning on release builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/InstPrinter')
-rw-r--r--lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
index 79af9a7498..d175e3e79e 100644
--- a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
+++ b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
@@ -104,9 +104,9 @@ void PPCInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNo,
// Print the CR bit number. The Code is ((BI << 5) | BO) for a
// BCC, but we must have the positive form here (BO == 12)
- unsigned BO = Code & 0xF;
unsigned BI = Code >> 5;
- assert(BO == 12 && "BO in predicate bit must have the positive form");
+ assert((Code & 0xF) == 12 &&
+ "BO in predicate bit must have the positive form");
unsigned Value = 4*RegNo + BI;
O << Value;