Skip to content
  • Anna Zaks's avatar
    Function::getNumBlockIDs() should be used instead of Function::size() to set... · 2c2aa9a9
    Anna Zaks authored
    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).
    
    llvm-svn: 133113
    2c2aa9a9
Loading