[RISCV] Fix an unused variable warning
authorKazu Hirata <kazu@google.com>
Mon, 12 Jun 2023 19:21:05 +0000 (12:21 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 12 Jun 2023 19:21:05 +0000 (12:21 -0700)
This patch fixes:

  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:3214:12: error: unused
  variable 'TSFlags' [-Werror,-Wunused-variable]

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

index d857e35..6159571 100644 (file)
@@ -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