Skip to content
  • Chandler Carruth's avatar
    Fix a silly use-after-free issue. A much earlier version of this code · 7adee1a0
    Chandler Carruth authored
    need lots of fanciness around retaining a reference to a Chain's slot in
    the BlockToChain map, but that's all gone now. We can just go directly
    to allocating the new chain (which will update the mapping for us) and
    using it.
    
    Somewhat gross mechanically generated test case replicates the issue
    Duncan spotted when actually testing this out.
    
    llvm-svn: 145120
    7adee1a0
Loading