aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-21 19:11:03 +0000
committerChris Lattner <sabre@nondot.org>2004-08-21 19:11:03 +0000
commit12585baf1a086f7d54e0ac963e3b0e7b6792b80c (patch)
tree2641830530fea6e12e4f269825ca0e21b2a5c146 /lib/Target
parent57b6eec5e60b81b9a52208c6776a2ab5614333db (diff)
downloadexternal_llvm-12585baf1a086f7d54e0ac963e3b0e7b6792b80c.zip
external_llvm-12585baf1a086f7d54e0ac963e3b0e7b6792b80c.tar.gz
external_llvm-12585baf1a086f7d54e0ac963e3b0e7b6792b80c.tar.bz2
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/PowerPC/PPC32AsmPrinter.cpp2
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
index 03fc210..8119fd3 100644
--- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
@@ -89,7 +89,7 @@ namespace {
void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
unsigned char value = MI->getOperand(OpNo).getImmedValue();
- assert(0 <= value && 31 >= value && "Invalid u5imm argument!");
+ assert(value <= 31 && "Invalid u5imm argument!");
O << (unsigned int)value;
}
void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo,
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 03fc210..8119fd3 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -89,7 +89,7 @@ namespace {
void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
unsigned char value = MI->getOperand(OpNo).getImmedValue();
- assert(0 <= value && 31 >= value && "Invalid u5imm argument!");
+ assert(value <= 31 && "Invalid u5imm argument!");
O << (unsigned int)value;
}
void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo,