[RISCV] Silence unused variable warning in Release builds. NFC.

This commit is contained in:
Benjamin Kramer 2020-06-27 23:24:28 +02:00
parent 323cb26cef
commit 85b53598a9
1 changed files with 1 additions and 0 deletions

View File

@ -895,6 +895,7 @@ public:
RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None;
bool IsConstant = evaluateConstantImm(getImm(), Imm, VK);
assert(IsConstant && "Expect constant value!");
(void)IsConstant;
Inst.addOperand(MCOperand::createImm(Imm - 1));
}