[llvm] r359869 - Reduce variable scope to just the if() block its actually used in. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 03:13:41 PDT 2019
Author: rksimon
Date: Fri May 3 03:13:41 2019
New Revision: 359869
URL: http://llvm.org/viewvc/llvm-project?rev=359869&view=rev
Log:
Reduce variable scope to just the if() block its actually used in. NFCI.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=359869&r1=359868&r2=359869&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri May 3 03:13:41 2019
@@ -2708,7 +2708,6 @@ static SDValue getv64i1Argument(CCValAss
"The values should reside in two registers");
SDValue Lo, Hi;
- unsigned Reg;
SDValue ArgValueLo, ArgValueHi;
MachineFunction &MF = DAG.getMachineFunction();
@@ -2718,7 +2717,7 @@ static SDValue getv64i1Argument(CCValAss
if (nullptr == InFlag) {
// When no physical register is present,
// create an intermediate virtual register.
- Reg = MF.addLiveIn(VA.getLocReg(), RC);
+ unsigned Reg = MF.addLiveIn(VA.getLocReg(), RC);
ArgValueLo = DAG.getCopyFromReg(Root, Dl, Reg, MVT::i32);
Reg = MF.addLiveIn(NextVA.getLocReg(), RC);
ArgValueHi = DAG.getCopyFromReg(Root, Dl, Reg, MVT::i32);
More information about the llvm-commits
mailing list