[llvm] 85b5359 - [RISCV] Silence unused variable warning in Release builds. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 27 14:25:07 PDT 2020
Author: Benjamin Kramer
Date: 2020-06-27T23:24:28+02:00
New Revision: 85b53598a984025afd96f2a00231ac6b0f20d7b2
URL: https://github.com/llvm/llvm-project/commit/85b53598a984025afd96f2a00231ac6b0f20d7b2
DIFF: https://github.com/llvm/llvm-project/commit/85b53598a984025afd96f2a00231ac6b0f20d7b2.diff
LOG: [RISCV] Silence unused variable warning in Release builds. NFC.
Added:
Modified:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index 854a6b82be76..407f980bd35e 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -895,6 +895,7 @@ struct RISCVOperand : public MCParsedAsmOperand {
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));
}
More information about the llvm-commits
mailing list