mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-02 01:47:06 +00:00
fix warning in release-asserts mode and spelling of assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62699 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e42c5bdf5
commit
0f2d995fd6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user