diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-06-23 08:09:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-06-23 08:09:30 +0000 |
commit | 2361cd9897183ca5140c25be4431b81ebf1e7b5d (patch) | |
tree | 35d073124b6374b1bc3e9c7338d3e96cf4da5391 /llvm/lib | |
parent | 1cac50bc5eade608e95e9748fc192f262848df49 (diff) | |
download | bcm5719-llvm-2361cd9897183ca5140c25be4431b81ebf1e7b5d.tar.gz bcm5719-llvm-2361cd9897183ca5140c25be4431b81ebf1e7b5d.zip |
Silence an unused variable warning on release builds.
llvm-svn: 159074
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp index 79af9a74983..d175e3e79eb 100644 --- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ b/llvm/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; |