Skip to content

Commit

Permalink
Fix -Werror=unused-variable error after r369528.
Browse files Browse the repository at this point in the history
llvm-svn: 369573
  • Loading branch information
zygoloid committed Aug 21, 2019
1 parent d7887cf commit b73cd33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ static DecodeStatus decodeRVCInstrSImm(MCInst &Inst, unsigned Insn,
fieldFromInstruction(Insn, 12, 1) << 5 | fieldFromInstruction(Insn, 2, 5);
assert(decodeSImmOperand<6>(Inst, SImm6, Address, Decoder) ==
MCDisassembler::Success && "Invalid immediate");
(void)SImm6;
return MCDisassembler::Success;
}

Expand All @@ -316,6 +317,7 @@ static DecodeStatus decodeRVCInstrRdSImm(MCInst &Inst, unsigned Insn,
fieldFromInstruction(Insn, 12, 1) << 5 | fieldFromInstruction(Insn, 2, 5);
assert(decodeSImmOperand<6>(Inst, SImm6, Address, Decoder) ==
MCDisassembler::Success && "Invalid immediate");
(void)SImm6;
return MCDisassembler::Success;
}

Expand All @@ -328,6 +330,7 @@ static DecodeStatus decodeRVCInstrRdRs1UImm(MCInst &Inst, unsigned Insn,
fieldFromInstruction(Insn, 12, 1) << 5 | fieldFromInstruction(Insn, 2, 5);
assert(decodeUImmOperand<6>(Inst, UImm6, Address, Decoder) ==
MCDisassembler::Success && "Invalid immediate");
(void)UImm6;
return MCDisassembler::Success;
}

Expand Down

0 comments on commit b73cd33

Please sign in to comment.