Skip to content

Commit 39f77b3

Browse files
committed
[X86] assignValueToReg - fix Wshadow warning. NFCI.
X86OutgoingValueHandler already has a MIB member
1 parent 33e2000 commit 39f77b3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/X86/X86CallLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ struct X86OutgoingValueHandler : public CallLowering::IncomingValueHandler {
134134
unsigned ValSize = VA.getValVT().getSizeInBits();
135135
unsigned LocSize = VA.getLocVT().getSizeInBits();
136136
if (PhysRegSize > ValSize && LocSize == ValSize) {
137-
assert((PhysRegSize == 128 || PhysRegSize == 80) && "We expect that to be 128 bit");
138-
auto MIB = MIRBuilder.buildAnyExt(LLT::scalar(PhysRegSize), ValVReg);
139-
ExtReg = MIB.getReg(0);
137+
assert((PhysRegSize == 128 || PhysRegSize == 80) &&
138+
"We expect that to be 128 bit");
139+
ExtReg =
140+
MIRBuilder.buildAnyExt(LLT::scalar(PhysRegSize), ValVReg).getReg(0);
140141
} else
141142
ExtReg = extendRegister(ValVReg, VA);
142143

0 commit comments

Comments
 (0)