fix warning in release-asserts mode and spelling of assert.

llvm-svn: 62699
This commit is contained in:
Chris Lattner 2009-01-21 18:38:18 +00:00
parent f66bf111a4
commit a326520190
1 changed files with 2 additions and 3 deletions

View File

@ -185,9 +185,8 @@ namespace {
void
printDFormAddr(const MachineInstr *MI, unsigned OpNo)
{
const MachineOperand &MO = MI->getOperand(OpNo);
assert(MO.isImm() &&
"printDFormAddr first operand is not immedate");
assert(MI->getOperand(OpNo).isImm() &&
"printDFormAddr first operand is not immediate");
int64_t value = int64_t(MI->getOperand(OpNo).getImm());
int16_t value16 = int16_t(value);
assert((value16 >= -(1 << (9+4)) && value16 <= (1 << (9+4)) - 1)