summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-23 10:42:47 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-23 10:42:47 +0000
commit0b184b8526d54e0380b98bc48ecb8502bafb6c37 (patch)
tree4e5acebde7fe4ef3551771da7a339285de23b971 /llvm/lib/CodeGen
parent4e0faa338b1733fedf74002714b95c312c17d93a (diff)
downloadbcm5719-llvm-0b184b8526d54e0380b98bc48ecb8502bafb6c37.tar.gz
bcm5719-llvm-0b184b8526d54e0380b98bc48ecb8502bafb6c37.zip
CriticalAntiDepBreaker - Assert that we've found the bottom of the critical path. NFCI.
Silences static analyzer null dereference warnings. llvm-svn: 372577
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
index 22575d526b3..702e7e244bc 100644
--- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
@@ -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
{
OpenPOWER on IntegriCloud