forked from OSchip/llvm-project
fix warning in release-asserts mode and spelling of assert.
llvm-svn: 62699
This commit is contained in:
parent
f66bf111a4
commit
a326520190
|
|
@ -185,9 +185,8 @@ namespace {
|
||||||
void
|
void
|
||||||
printDFormAddr(const MachineInstr *MI, unsigned OpNo)
|
printDFormAddr(const MachineInstr *MI, unsigned OpNo)
|
||||||
{
|
{
|
||||||
const MachineOperand &MO = MI->getOperand(OpNo);
|
assert(MI->getOperand(OpNo).isImm() &&
|
||||||
assert(MO.isImm() &&
|
"printDFormAddr first operand is not immediate");
|
||||||
"printDFormAddr first operand is not immedate");
|
|
||||||
int64_t value = int64_t(MI->getOperand(OpNo).getImm());
|
int64_t value = int64_t(MI->getOperand(OpNo).getImm());
|
||||||
int16_t value16 = int16_t(value);
|
int16_t value16 = int16_t(value);
|
||||||
assert((value16 >= -(1 << (9+4)) && value16 <= (1 << (9+4)) - 1)
|
assert((value16 >= -(1 << (9+4)) && value16 <= (1 << (9+4)) - 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue