From: Simon Pilgrim Date: Mon, 23 Sep 2019 10:42:47 +0000 (+0000) Subject: CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e951112cb987af7fe20f786a6983c70594a6ae1;p=llvm CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path. NFCI. Silences static analyzer null dereference warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372577 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CriticalAntiDepBreaker.cpp b/lib/CodeGen/CriticalAntiDepBreaker.cpp index 22575d526b3..702e7e244bc 100644 --- a/lib/CodeGen/CriticalAntiDepBreaker.cpp +++ b/lib/CodeGen/CriticalAntiDepBreaker.cpp @@ -457,6 +457,7 @@ BreakAntiDependencies(const std::vector &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 {