From: Nirav Dave Date: Tue, 28 Mar 2017 13:39:50 +0000 (+0000) Subject: [SDAG] Minor cleanup of variable usage. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6987121baa0fba09debbbb72b9a6e2ef05029ab;p=llvm [SDAG] Minor cleanup of variable usage. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298916 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d527a0e15af..2263ddc5647 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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())