[llvm-commits] [llvm] r159074 - /llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
Craig Topper
craig.topper at gmail.com
Sat Jun 23 01:09:30 PDT 2012
Author: ctopper
Date: Sat Jun 23 03:09:30 2012
New Revision: 159074
URL: http://llvm.org/viewvc/llvm-project?rev=159074&view=rev
Log:
Silence an unused variable warning on release builds.
Modified:
llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp?rev=159074&r1=159073&r2=159074&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp Sat Jun 23 03:09:30 2012
@@ -104,9 +104,9 @@
// 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;
More information about the llvm-commits
mailing list