[AMDGPU] Fix gcc warnings about unused variables [NFC]

This commit is contained in:
Mikael Holmen 2021-09-23 08:07:45 +02:00
parent f4abdb0c07
commit e7b169a8ae
1 changed files with 2 additions and 2 deletions

View File

@ -1393,7 +1393,7 @@ bool SIFoldOperands::tryFoldClamp(MachineInstr &MI) {
// instruction, so we might as well convert it to the more flexible VOP3-only
// mad/fma form.
MachineFunction::iterator MBBI = Def->getParent()->getIterator();
if (MachineInstr *NewMI = TII->convertToThreeAddress(MBBI, *Def, nullptr))
if (TII->convertToThreeAddress(MBBI, *Def, nullptr))
Def->eraseFromParent();
return true;
@ -1539,7 +1539,7 @@ bool SIFoldOperands::tryFoldOMod(MachineInstr &MI) {
// instruction, so we might as well convert it to the more flexible VOP3-only
// mad/fma form.
MachineFunction::iterator MBBI = Def->getParent()->getIterator();
if (MachineInstr *NewMI = TII->convertToThreeAddress(MBBI, *Def, nullptr))
if (TII->convertToThreeAddress(MBBI, *Def, nullptr))
Def->eraseFromParent();
return true;