[llvm] 90b3e67 - [RISCV] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 10:32:08 PST 2023
Author: Kazu Hirata
Date: 2023-11-27T10:32:00-08:00
New Revision: 90b3e6711e0a03520fb617994178cdbe083ff20c
URL: https://github.com/llvm/llvm-project/commit/90b3e6711e0a03520fb617994178cdbe083ff20c
DIFF: https://github.com/llvm/llvm-project/commit/90b3e6711e0a03520fb617994178cdbe083ff20c.diff
LOG: [RISCV] Fix a warning
This patch fixes:
llvm/lib/Target/RISCV/RISCVFoldMasks.cpp:151:14: error: unused
variable 'HasPolicyOp' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp b/llvm/lib/Target/RISCV/RISCVFoldMasks.cpp
index 4586a4a0c72ed39..d74427112b1ba56 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);
More information about the llvm-commits
mailing list