Fix null reference creation in ScheduleDAGInstrs constructor call.
[oota-llvm.git] / include / llvm / CodeGen / MachineScheduler.h
index 7d85432101b58535c095078dd578ccf9c0441cc6..6f48b8102b8e9772853d8f0cbcd96b4e71876cf4 100644 (file)
@@ -250,7 +250,7 @@ protected:
 public:
   ScheduleDAGMI(MachineSchedContext *C, std::unique_ptr<MachineSchedStrategy> S,
                 bool IsPostRA)
-      : ScheduleDAGInstrs(*C->MF, *C->MLI, *C->MDT, IsPostRA,
+      : ScheduleDAGInstrs(*C->MF, C->MLI, C->MDT, IsPostRA,
                           /*RemoveKillFlags=*/IsPostRA, C->LIS),
         AA(C->AA), SchedImpl(std::move(S)), Topo(SUnits, &ExitSU), CurrentTop(),
         CurrentBottom(), NextClusterPred(nullptr), NextClusterSucc(nullptr) {