]> granicus.if.org Git - llvm/commitdiff
Codegen: [MBP] Add messages to asserts. NFC
authorKyle Butt <kyle+llvm@iteratee.net>
Tue, 28 Jun 2016 22:50:54 +0000 (22:50 +0000)
committerKyle Butt <kyle+llvm@iteratee.net>
Tue, 28 Jun 2016 22:50:54 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274075 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBlockPlacement.cpp

index 9d6682e4bb1e3ee8e843a470a3714aa5553b70fb..555fde62336729a542edef2139da276ebf297f4e 100644 (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.