Fix compilation issues.
[oota-llvm.git] / lib / CodeGen / EarlyIfConversion.cpp
index b621e101773adb715e7bf85de7721a7c20ccb007..2d47be71bea0fc54112d363ec53afc42e21d7ec5 100644 (file)
@@ -777,7 +777,9 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
   DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n"
                << "********** Function: " << MF.getName() << '\n');
   // Only run if conversion if the target wants it.
-  if (!MF.getTarget().getSubtarget().enableEarlyIfConversion())
+  if (!MF.getTarget()
+           .getSubtarget<TargetSubtargetInfo>()
+           .enableEarlyIfConversion())
     return true;
 
   TII = MF.getTarget().getInstrInfo();