diff options
author | Anna Zaks <ganna@apple.com> | 2011-06-16 00:03:21 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-06-16 00:03:21 +0000 |
commit | 3c397eb741d1b6c5ecf2aa5c3632b7ce3abf55d4 (patch) | |
tree | af4690c2326cbf98922426afead4ee2ced181053 /lib/CodeGen/MachineBasicBlock.cpp | |
parent | 992205ac71e214562beffd1e84716f0f7ccb3bd9 (diff) |
Function::getNumBlockIDs() should be used instead of Function::size() to set the upper limit on the block IDs since basic blocks might get removed (simplified away) after being initially numbered. Plus the test case, in which SelectionDAGBuilder::visitBr() calls llvm::MachineFunction::removeFromMBBNumbering(), which introduces the hole in numbering leading to an assert in llc (prior to the fix).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions