[llvm] 90bd487 - [CodeGen] Fix an unused variable warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 09:43:53 PST 2021


Author: Kazu Hirata
Date: 2021-12-17T09:43:42-08:00
New Revision: 90bd4873d66af71016bc6da0071ea48c438fa039

URL: https://github.com/llvm/llvm-project/commit/90bd4873d66af71016bc6da0071ea48c438fa039
DIFF: https://github.com/llvm/llvm-project/commit/90bd4873d66af71016bc6da0071ea48c438fa039.diff

LOG: [CodeGen] Fix an unused variable warning

This patch fixes:

  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:22617:11: error:
  unused variable 'Ops' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index b58758b4253b..f6c53479e226 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -22614,7 +22614,6 @@ SDValue DAGCombiner::SimplifyVBinOp(SDNode *N, const SDLoc &DL) {
 
   SDValue LHS = N->getOperand(0);
   SDValue RHS = N->getOperand(1);
-  SDValue Ops[] = {LHS, RHS};
   unsigned Opcode = N->getOpcode();
   SDNodeFlags Flags = N->getFlags();
 


        


More information about the llvm-commits mailing list