[AMDGPU] Fixed return value causing warning and regression

llvm-svn: 345518
This commit is contained in:
Stanislav Mekhanoshin 2018-10-29 17:53:23 +00:00
parent 7d18094813
commit 6b1c6548bd
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static MachineInstr* matchSwap(MachineInstr &MovT, MachineRegisterInfo &MRI,
const SIRegisterInfo &TRI = TII->getRegisterInfo();
if (!TRI.isVGPR(MRI, X))
return false;
return nullptr;
for (MachineOperand &YTop : MRI.use_nodbg_operands(T)) {
if (YTop.getSubReg() != Tsub)