mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
Avoid -Wunused-variable in -asserts builds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e17232ee4d
commit
ddb657c63d
@ -607,11 +607,6 @@ static bool DisassembleThumb1LdSt(unsigned opA, MCInst &MI, unsigned Opcode,
|
||||
const TargetOperandInfo *OpInfo = TID.OpInfo;
|
||||
unsigned &OpIdx = NumOpsAdded;
|
||||
|
||||
// Table A6-5 16-bit Thumb Load/store instructions
|
||||
// opA = 0b0101 for STR/LDR (register) and friends.
|
||||
// Otherwise, we have STR/LDR (immediate) and friends.
|
||||
bool Imm5 = (opA != 5);
|
||||
|
||||
assert(NumOps >= 2
|
||||
&& OpInfo[0].RegClass == ARM::tGPRRegClassID
|
||||
&& OpInfo[1].RegClass == ARM::tGPRRegClassID
|
||||
@ -632,7 +627,10 @@ static bool DisassembleThumb1LdSt(unsigned opA, MCInst &MI, unsigned Opcode,
|
||||
|
||||
if (OpInfo[OpIdx].RegClass < 0 && !OpInfo[OpIdx].isPredicate() &&
|
||||
!OpInfo[OpIdx].isOptionalDef()) {
|
||||
assert(Imm5 && "Immediate operand expected for this opcode");
|
||||
// Table A6-5 16-bit Thumb Load/store instructions
|
||||
// opA = 0b0101 for STR/LDR (register) and friends.
|
||||
// Otherwise, we have STR/LDR (immediate) and friends.
|
||||
assert(opA != 5 && "Immediate operand expected for this opcode");
|
||||
MI.addOperand(MCOperand::CreateImm(getT1Imm5(insn)));
|
||||
++OpIdx;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user