mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Eliminate a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -300,11 +300,13 @@ namespace {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) {
|
static bool TableIsSorted(const TableEntry *Table, unsigned NumEntries) {
|
||||||
for (unsigned i = 0; i != NumEntries-1; ++i)
|
for (unsigned i = 0; i != NumEntries-1; ++i)
|
||||||
if (!(Table[i] < Table[i+1])) return false;
|
if (!(Table[i] < Table[i+1])) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) {
|
static int Lookup(const TableEntry *Table, unsigned N, unsigned Opcode) {
|
||||||
const TableEntry *I = std::lower_bound(Table, Table+N, 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) {
|
void FPS::handleOneArgFPRW(MachineBasicBlock::iterator &I) {
|
||||||
MachineInstr *MI = I;
|
MachineInstr *MI = I;
|
||||||
|
#ifndef NDEBUG
|
||||||
unsigned NumOps = MI->getDesc().getNumOperands();
|
unsigned NumOps = MI->getDesc().getNumOperands();
|
||||||
assert(NumOps >= 2 && "FPRW instructions must have 2 ops!!");
|
assert(NumOps >= 2 && "FPRW instructions must have 2 ops!!");
|
||||||
|
#endif
|
||||||
|
|
||||||
// Is this the last use of the source register?
|
// Is this the last use of the source register?
|
||||||
unsigned Reg = getFPReg(MI->getOperand(1));
|
unsigned Reg = getFPReg(MI->getOperand(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user