[llvm] 573a083 - [DAG] Remove unused variable 'VT' in DAGCombiner.cpp (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 03:31:32 PDT 2023


Author: Jie Fu
Date: 2023-10-09T18:30:38+08:00
New Revision: 573a083c1cc0c092af8f7012907e0b49c1225d38

URL: https://github.com/llvm/llvm-project/commit/573a083c1cc0c092af8f7012907e0b49c1225d38
DIFF: https://github.com/llvm/llvm-project/commit/573a083c1cc0c092af8f7012907e0b49c1225d38.diff

LOG: [DAG] Remove unused variable 'VT' in DAGCombiner.cpp (NFC)

/llvm-project/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:26896:7: error: unused variable 'VT' [-Werror,-Wunused-variable]
  EVT VT = N->getValueType(0);
      ^
1 error generated.

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 ff0f636bbf77c43..1021b07da1ac6c5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -26893,7 +26893,6 @@ SDValue DAGCombiner::foldSelectOfBinops(SDNode *N) {
   SDValue N0 = N->getOperand(0);
   SDValue N1 = N->getOperand(1);
   SDValue N2 = N->getOperand(2);
-  EVT VT = N->getValueType(0);
   SDLoc DL(N);
 
   unsigned BinOpc = N1.getOpcode();


        


More information about the llvm-commits mailing list