CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 23 Sep 2019 10:42:47 +0000 (10:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 23 Sep 2019 10:42:47 +0000 (10:42 +0000)
Silences static analyzer null dereference warnings.

llvm-svn: 372577

llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp

index 22575d5..702e7e2 100644 (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
   {