CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path. NFCI.

Silences static analyzer null dereference warnings.

llvm-svn: 372577
This commit is contained in:
Simon Pilgrim 2019-09-23 10:42:47 +00:00
parent ea118e0f80
commit 74d6018346

View File

@ -457,6 +457,7 @@ BreakAntiDependencies(const std::vector<SUnit> &SUnits,
if (!Max || SU->getDepth() + SU->Latency > Max->getDepth() + Max->Latency)
Max = SU;
}
assert(Max && "Failed to find bottom of the critical path");
#ifndef NDEBUG
{