[llvm] r273067 - Codegen: [MBP] Add assert strings. NFC
Kyle Butt via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 15:40:19 PDT 2016
Author: iteratee
Date: Fri Jun 17 17:40:19 2016
New Revision: 273067
URL: http://llvm.org/viewvc/llvm-project?rev=273067&view=rev
Log:
Codegen: [MBP] Add assert strings. NFC
Modified:
llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=273067&r1=273066&r2=273067&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Fri Jun 17 17:40:19 2016
@@ -846,8 +846,8 @@ void MachineBlockPlacement::buildChain(
SmallVectorImpl<MachineBasicBlock *> &BlockWorkList,
SmallVectorImpl<MachineBasicBlock *> &EHPadWorkList,
const BlockFilterSet *BlockFilter) {
- assert(BB);
- assert(BlockToChain[BB] == &Chain);
+ assert(BB && "BB must not be null.\n");
+ assert(BlockToChain[BB] == &Chain && "BlockToChainMap mis-match.\n");
MachineFunction::iterator PrevUnplacedBlockIt = F->begin();
MachineBasicBlock *LoopHeaderBB = BB;
More information about the llvm-commits
mailing list