Sink an otherwise unused variable's initializer into the asserts that

used it. Fixes an unused variable warning from GCC on release builds.

llvm-svn: 142799
This commit is contained in:
Chandler Carruth 2011-10-24 16:51:55 +00:00
parent 2b4907e73a
commit 30b63c6430
1 changed files with 2 additions and 3 deletions

View File

@ -395,9 +395,8 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
void MachineBlockPlacement::placeChainsTopologically(MachineFunction &F) {
MachineBasicBlock *EntryB = &F.front();
BlockChain *EntryChain = BlockToChain[EntryB];
assert(EntryChain && "Missing chain for entry block");
assert(*EntryChain->begin() == EntryB &&
assert(BlockToChain[EntryB] && "Missing chain for entry block");
assert(*BlockToChain[EntryB]->begin() == EntryB &&
"Entry block is not the head of the entry block chain");
// Walk the blocks in RPO, and insert each block for a chain in order the