diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-24 10:58:42 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-24 10:58:42 +0000 |
commit | 9942c07745f849f19e976a332708200c45df5436 (patch) | |
tree | 8a1d75c22956a69f3ab5909f6da797b9cd2f1f2a | |
parent | 2fb41fc70c1fa5ccc44d681d91b0de9cfde34927 (diff) | |
download | bcm5719-llvm-9942c07745f849f19e976a332708200c45df5436.tar.gz bcm5719-llvm-9942c07745f849f19e976a332708200c45df5436.zip |
[ModuloSchedule] KernelRewriter::rewrite - silence static analyzer dyn_cast<> null dereference warning. NFCI.
Assert that we've found the start of the MI schedule list.
llvm-svn: 372723
-rw-r--r-- | llvm/lib/CodeGen/ModuloSchedule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/ModuloSchedule.cpp b/llvm/lib/CodeGen/ModuloSchedule.cpp index aa5e86e97d1..a68153cf3b6 100644 --- a/llvm/lib/CodeGen/ModuloSchedule.cpp +++ b/llvm/lib/CodeGen/ModuloSchedule.cpp @@ -1301,6 +1301,7 @@ void KernelRewriter::rewrite() { if (!FirstMI) FirstMI = MI; } + assert(FirstMI && "Failed to find first MI in schedule"); // At this point all of the scheduled instructions are between FirstMI // and the end of the block. Kill from the first non-phi to FirstMI. |