Fix a bug in my previous patch: refer to the impl not the pure virtual version. It's unclear why gcc would ever compile this...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-01-01 01:05:34 +00:00
parent 6410552250
commit 264e6fec9f
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ unsigned PPCInstrInfo::isStoreToStackSlot(MachineInstr *MI,
MachineInstr *PPCInstrInfo::commuteInstruction(MachineInstr *MI) const {
// Normal instructions can be commuted the obvious way.
if (MI->getOpcode() != PPC::RLWIMI)
return TargetInstrInfo::commuteInstruction(MI);
return TargetInstrInfoImpl::commuteInstruction(MI);
// Cannot commute if it has a non-zero rotate count.
if (MI->getOperand(3).getImm() != 0)

View File

@ -575,7 +575,7 @@ MachineInstr *X86InstrInfo::commuteInstruction(MachineInstr *MI) const {
// Fallthrough intended.
}
default:
return TargetInstrInfo::commuteInstruction(MI);
return TargetInstrInfoImpl::commuteInstruction(MI);
}
}