forked from OSchip/llvm-project
[X86] Avoid llvm-qualified-auto warning by not using auto. NFC.
Try to consistently use the actual type name in the file.
This commit is contained in:
parent
23d9f4b958
commit
890707aa01
|
@ -187,8 +187,7 @@ bool FixupBWInstPass::runOnMachineFunction(MachineFunction &MF) {
|
|||
/// If so, return that super register in \p SuperDestReg.
|
||||
bool FixupBWInstPass::getSuperRegDestIfDead(MachineInstr *OrigMI,
|
||||
Register &SuperDestReg) const {
|
||||
auto *TRI = &TII->getRegisterInfo();
|
||||
|
||||
const X86RegisterInfo *TRI = &TII->getRegisterInfo();
|
||||
Register OrigDestReg = OrigMI->getOperand(0).getReg();
|
||||
SuperDestReg = getX86SubSuperRegister(OrigDestReg, 32);
|
||||
|
||||
|
@ -320,7 +319,7 @@ MachineInstr *FixupBWInstPass::tryReplaceCopy(MachineInstr *MI) const {
|
|||
|
||||
// This is only correct if we access the same subregister index: otherwise,
|
||||
// we could try to replace "movb %ah, %al" with "movl %eax, %eax".
|
||||
auto *TRI = &TII->getRegisterInfo();
|
||||
const X86RegisterInfo *TRI = &TII->getRegisterInfo();
|
||||
if (TRI->getSubRegIndex(NewSrcReg, OldSrc.getReg()) !=
|
||||
TRI->getSubRegIndex(NewDestReg, OldDest.getReg()))
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue