]> granicus.if.org Git - llvm/commitdiff
[SDAG] Minor cleanup of variable usage. NFC.
authorNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 13:39:50 +0000 (13:39 +0000)
committerNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 13:39:50 +0000 (13:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298916 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index d527a0e15afe802101792c6424c7cf71611a4de3..2263ddc56471a4f1e6934e05ca005ffce9f99b5c 100644 (file)
@@ -1148,9 +1148,9 @@ SDValue DAGCombiner::PromoteIntShiftOp(SDValue Op) {
     bool Replace = false;
     SDValue N0 = Op.getOperand(0);
     if (Opc == ISD::SRA)
-      N0 = SExtPromoteOperand(Op.getOperand(0), PVT);
+      N0 = SExtPromoteOperand(N0, PVT);
     else if (Opc == ISD::SRL)
-      N0 = ZExtPromoteOperand(Op.getOperand(0), PVT);
+      N0 = ZExtPromoteOperand(N0, PVT);
     else
       N0 = PromoteOperand(N0, PVT, Replace);
     if (!N0.getNode())