[llvm] a13645c - DAGCombiner: fix -Wunused-private-field. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 22:34:02 PST 2023


Author: Fangrui Song
Date: 2023-02-07T22:33:56-08:00
New Revision: a13645cf8c9ac403d4fa8da29a74392a4777b245

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

LOG: DAGCombiner: fix -Wunused-private-field. NFC

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 d1d6f4ab6387..b6e0578dba9b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -867,13 +867,12 @@ class EmptyMatchContext {
 
 class VPMatchContext {
   SelectionDAG &DAG;
-  SDNode *Root;
   SDValue RootMaskOp;
   SDValue RootVectorLenOp;
 
 public:
   VPMatchContext(SelectionDAG &DAG, SDNode *Root)
-      : DAG(DAG), Root(Root), RootMaskOp(), RootVectorLenOp() {
+      : DAG(DAG), RootMaskOp(), RootVectorLenOp() {
     assert(Root->isVPOpcode());
     if (auto RootMaskPos = ISD::getVPMaskIdx(Root->getOpcode()))
       RootMaskOp = Root->getOperand(*RootMaskPos);


        


More information about the llvm-commits mailing list