mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Eliminate a compilation warning.
llvm-svn: 53873
This commit is contained in:
parent
b91bef08a7
commit
a2bb31372d
@ -300,11 +300,13 @@ namespace {
|
||||
};
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) {
|
||||
for (unsigned i = 0; i != NumEntries-1; ++i)
|
||||
if (!(Table[i] < Table[i+1])) return false;
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) {
|
||||
const TableEntry *I = std::lower_bound(Table, Table+N, Opcode);
|
||||
@ -662,8 +664,10 @@ void FPS::handleOneArgFP(MachineBasicBlock::iterator &I) {
|
||||
///
|
||||
void FPS::handleOneArgFPRW(MachineBasicBlock::iterator &I) {
|
||||
MachineInstr *MI = I;
|
||||
#ifndef NDEBUG
|
||||
unsigned NumOps = MI->getDesc().getNumOperands();
|
||||
assert(NumOps >= 2 && "FPRW instructions must have 2 ops!!");
|
||||
#endif
|
||||
|
||||
// Is this the last use of the source register?
|
||||
unsigned Reg = getFPReg(MI->getOperand(1));
|
||||
|
Loading…
Reference in New Issue
Block a user