Skip to content

Commit 90b3e67

Browse files
[RISCV] Fix a warning
This patch fixes: llvm/lib/Target/RISCV/RISCVFoldMasks.cpp:151:14: error: unused variable 'HasPolicyOp' [-Werror,-Wunused-variable]
1 parent e66876f commit 90b3e67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVFoldMasks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ bool RISCVFoldMasks::convertToUnmasked(MachineInstr &MI,
157157
"Masked and unmasked pseudos are inconsistent");
158158
assert(HasPolicyOp == HasPassthru && "Unexpected pseudo structure");
159159
#endif
160+
(void)HasPolicyOp;
160161

161162
MI.setDesc(MCID);
162163

0 commit comments

Comments
 (0)