diff --git a/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp b/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp index 4586a4a0c72ed..d74427112b1ba 100644 --- a/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp +++ b/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp @@ -157,6 +157,7 @@ bool RISCVFoldMasks::convertToUnmasked(MachineInstr &MI, "Masked and unmasked pseudos are inconsistent"); assert(HasPolicyOp == HasPassthru && "Unexpected pseudo structure"); #endif + (void)HasPolicyOp; MI.setDesc(MCID);