Codegen: [MBP] Add messages to asserts. NFC

llvm-svn: 274075
This commit is contained in:
Kyle Butt 2016-06-28 22:50:54 +00:00
parent 465651fe3d
commit 82c2290e0f
1 changed files with 4 additions and 3 deletions

View File

@ -855,9 +855,10 @@ void MachineBlockPlacement::buildChain(
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.