diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-24 16:51:55 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-24 16:51:55 +0000 |
| commit | 30b63c64306f8e112be35bdb90e2901ba9314cc8 (patch) | |
| tree | 24fd63de0772f6054b798abd97b5b77ecb7e1e3d /llvm/lib | |
| parent | 2b4907e73a11794d6f3cc8ca778d1a73a9fbcd04 (diff) | |
| download | bcm5719-llvm-30b63c64306f8e112be35bdb90e2901ba9314cc8.tar.gz bcm5719-llvm-30b63c64306f8e112be35bdb90e2901ba9314cc8.zip | |
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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineBlockPlacement.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index 32eb70e21ff..21582b94c53 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -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 |

