git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274075
91177308-0d34-0410-b5e6-
96231b3b80d8
BlockFilter);
BB = *std::prev(Chain.end());
for (;;) {
- assert(BB);
- assert(BlockToChain[BB] == &Chain);
- assert(*std::prev(Chain.end()) == BB);
+ assert(BB && "null block found at end of chain in loop.");
+ assert(BlockToChain[BB] == &Chain && "BlockToChainMap mis-match in loop.");
+ assert(*std::prev(Chain.end()) == BB && "BB Not found at end of chain.");
+
// Look for the best viable successor if there is one to place immediately
// after this block.