From 264e6fec9f3962cb269031d6d84cee9f896e0286 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 1 Jan 2008 01:05:34 +0000 Subject: [PATCH] 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 --- lib/Target/PowerPC/PPCInstrInfo.cpp | 2 +- lib/Target/X86/X86InstrInfo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index 9982f907b35..46cd4e69a84 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -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) diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index e12f646a883..10e594763e0 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -575,7 +575,7 @@ MachineInstr *X86InstrInfo::commuteInstruction(MachineInstr *MI) const { // Fallthrough intended. } default: - return TargetInstrInfo::commuteInstruction(MI); + return TargetInstrInfoImpl::commuteInstruction(MI); } }