]> granicus.if.org Git - llvm/commitdiff
No need to copy the variable [NFC]
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Sat, 25 Feb 2017 17:18:09 +0000 (17:18 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Sat, 25 Feb 2017 17:18:09 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296259 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 97ced2e95b8632e30dae52c8b7fa8431c90f62f3..e5a3c3a01a43a2b8c49647f2658d09fee7ad0618 100644 (file)
@@ -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