mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-05-13 10:36:07 +00:00
Turn effective assert(0) into llvm_unreachable
llvm-svn: 237379
This commit is contained in:
parent
f678b80916
commit
ebdebdb193
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user