Fix `-Wextra` warning. NFC.

This commit is contained in:
Michael Liao 2020-04-10 03:21:14 -04:00
parent 96c4ec8fdb
commit b54b4ecac3
1 changed files with 6 additions and 5 deletions

View File

@ -734,11 +734,12 @@ void SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
: AMDGPU::V_LSHLREV_B32_e32;
auto First = BuildMI(MBB, &*Last, DL, get(OpcFirst), DestReg);
if (DstLow == SrcLow) { // alignbyte
First.addReg(SrcLow ? SrcReg : DestReg,
SrcLow ? getKillRegState(KillSrc) : RegState::Undef)
.addReg(SrcLow ? DestReg : SrcReg,
SrcLow ? RegState::Undef :getKillRegState(KillSrc))
.addImm(2);
First
.addReg(SrcLow ? SrcReg : DestReg,
SrcLow ? getKillRegState(KillSrc) : unsigned(RegState::Undef))
.addReg(SrcLow ? DestReg : SrcReg,
SrcLow ? unsigned(RegState::Undef) : getKillRegState(KillSrc))
.addImm(2);
} else {
First.addImm(16)
.addReg(DestReg, RegState::Undef);