diff --git a/include/llvm/MC/MCSchedule.h b/include/llvm/MC/MCSchedule.h index 62fb22fb2aa..41bdb02f615 100644 --- a/include/llvm/MC/MCSchedule.h +++ b/include/llvm/MC/MCSchedule.h @@ -208,7 +208,7 @@ public: unsigned getProcessorID() const { return ProcID; } /// Does this machine model include instruction-level scheduling. - bool hasInstrSchedModel() const { return SchedClassTable != NULL; } + bool hasInstrSchedModel() const { return SchedClassTable; } const MCProcResourceDesc *getProcResource(unsigned ProcResourceIdx) const { assert(hasInstrSchedModel() && "No scheduling machine model");