[llvm] 3984983 - [RISCV] Fix an unused variable warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 12:21:12 PDT 2023
Author: Kazu Hirata
Date: 2023-06-12T12:21:05-07:00
New Revision: 398498303e8449cec8aa245559d6d68f6d3ba7d4
URL: https://github.com/llvm/llvm-project/commit/398498303e8449cec8aa245559d6d68f6d3ba7d4
DIFF: https://github.com/llvm/llvm-project/commit/398498303e8449cec8aa245559d6d68f6d3ba7d4.diff
LOG: [RISCV] Fix an unused variable warning
This patch fixes:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:3214:12: error: unused
variable 'TSFlags' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index d857e35a57b5b..6159571e4bbdc 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -3211,7 +3211,6 @@ bool RISCVDAGToDAGISel::doPeepholeMaskedRVV(SDNode *N) {
// have a tied destination.
#ifndef NDEBUG
const MCInstrDesc &MCID = TII.get(Opc);
- uint64_t TSFlags = MCID.TSFlags;
bool HasTiedDest = RISCVII::isFirstDefTiedToFirstUse(MCID);
assert((UseTUPseudo == HasTiedDest) && "Unexpected pseudo to transform to");
#endif
More information about the llvm-commits
mailing list