Skip to content

Commit

Permalink
[RISCV] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  llvm/lib/Target/RISCV/RISCVFoldMasks.cpp:151:14: error: unused
  variable 'HasPolicyOp' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Nov 27, 2023
1 parent e66876f commit 90b3e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 90b3e67

Please sign in to comment.