AggressiveAntiDepBreaker - silence static analyzer null dereference warning. NFCI.
Assert that we've found the critical path.
llvm-svn: 372759
diff --git a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
index 18fcee6..f64b775 100644
--- a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
@@ -790,7 +790,7 @@
CriticalPathSU = SU;
}
}
-
+ assert(CriticalPathSU && "Failed to find SUnit critical path");
CriticalPathMI = CriticalPathSU->getInstr();
}