From 88e3041ca61eeaebbbd6c68a1b37209983b4c765 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 3 Sep 2008 01:04:47 +0000 Subject: [PATCH] Unbreak fast isel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55685 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FastISel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 5b825c2bdd7..ca127d312c7 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -14,8 +14,9 @@ //===----------------------------------------------------------------------===// #include "X86.h" -#include "X86RegisterInfo.h" #include "X86ISelLowering.h" +#include "X86RegisterInfo.h" +#include "X86Subtarget.h" #include "X86TargetMachine.h" #include "llvm/CodeGen/FastISel.h" #include "llvm/CodeGen/MachineRegisterInfo.h" @@ -28,7 +29,9 @@ class X86FastISel : public FastISel { const X86Subtarget *Subtarget; public: - explicit X86FastISel(MachineFunction &mf) : FastISel(mf) {} + explicit X86FastISel(MachineFunction &mf) : FastISel(mf) { + Subtarget = &TM.getSubtarget(); + } virtual bool TargetSelectInstruction(Instruction *I,