Fix a bug in my previous patch: refer to the impl not the pure virtual version. ...
authorChris Lattner <sabre@nondot.org>
Tue, 1 Jan 2008 01:05:34 +0000 (01:05 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Jan 2008 01:05:34 +0000 (01:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45476 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/X86/X86InstrInfo.cpp

index 9982f907b35f247d2df4636bdd6c59c6d3901cbc..46cd4e69a84286ff078f66911d7df9e6bb651907 100644 (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)
index e12f646a883516922ddb9636ed85094c0d1c07c1..10e594763e00b1a0b2a8ba2e9faeff2c129bfd7f 100644 (file)
@@ -575,7 +575,7 @@ MachineInstr *X86InstrInfo::commuteInstruction(MachineInstr *MI) const {
     // Fallthrough intended.
   }
   default:
-    return TargetInstrInfo::commuteInstruction(MI);
+    return TargetInstrInfoImpl::commuteInstruction(MI);
   }
 }