Turn effective assert(0) into llvm_unreachable

llvm-svn: 237379
This commit is contained in:
Matthias Braun 2015-05-14 18:33:29 +00:00
parent f678b80916
commit ebdebdb193

View File

@ -242,13 +242,11 @@ unsigned TargetSchedModel::computeInstrLatency(unsigned Opcode) const {
unsigned SCIdx = TII->get(Opcode).getSchedClass();
const MCSchedClassDesc *SCDesc = SchedModel.getSchedClassDesc(SCIdx);
unsigned Latency = 0;
if (SCDesc->isValid() && !SCDesc->isVariant())
return computeInstrLatency(*SCDesc);
assert(Latency && "No MI sched latency");
return 0;
llvm_unreachable("No MI sched latency");
}
unsigned