Unbreak fast isel.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 3 Sep 2008 01:04:47 +0000 (01:04 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 3 Sep 2008 01:04:47 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index 5b825c2bdd7aa3e5095a872d7355ca460632cc9c..ca127d312c7a584a976a73fe08b7522fa99f62bb 100644 (file)
@@ -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<X86Subtarget>();
+  }
 
   virtual bool
     TargetSelectInstruction(Instruction *I,