forked from OSchip/llvm-project
[RISCV] Silence unused variable warning in Release builds. NFC.
This commit is contained in:
parent
323cb26cef
commit
85b53598a9
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue