diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e78dfb12505c7..e7d4c4b88191b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2782,7 +2782,7 @@ void SelectionDAGISel::UpdateChains( /// induce cycles in the DAG) and if so, creating a TokenFactor node. that will /// be used as the input node chain for the generated nodes. static SDValue -HandleMergeInputChains(SmallVectorImpl &ChainNodesMatched, +HandleMergeInputChains(const SmallVectorImpl &ChainNodesMatched, SelectionDAG *CurDAG) { SmallPtrSet Visited;