Skip to content
  • Chandler Carruth's avatar
    When adding blocks to the list of those which no longer have any CFG · d394bafd
    Chandler Carruth authored
    conflicts, we should only be adding the first block of the chain to the
    list, lest we try to merge into the middle of that chain. Most of the
    places we were doing this we already happened to be looking at the first
    block, but there is no reason to assume that, and in some cases it was
    clearly wrong.
    
    I've added a couple of tests here. One already worked, but I like having
    an explicit test for it. The other is reduced from a test case Duncan
    reduced for me and used to crash. Now it is handled correctly.
    
    llvm-svn: 145119
    d394bafd
Loading