From: Artyom Skrobov Date: Sat, 25 Feb 2017 17:18:09 +0000 (+0000) Subject: No need to copy the variable [NFC] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc3dbb4073a8791d27897aad64f0232ffc360fa1;p=llvm No need to copy the variable [NFC] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296259 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 97ced2e95b8..e5a3c3a01a4 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1353,8 +1353,7 @@ void DAGCombiner::Run(CombineLevel AtLevel) { else { assert(N->getValueType(0) == RV.getValueType() && N->getNumValues() == 1 && "Type mismatch"); - SDValue OpV = RV; - DAG.ReplaceAllUsesWith(N, &OpV); + DAG.ReplaceAllUsesWith(N, &RV); } // Push the new node and any users onto the worklist