Skip to content
  • Justin Bogner's avatar
    SDAG: Update ChainNodesMatched during UpdateChains if a node is replaced · 8f520a73
    Justin Bogner authored
    Previously, we would hit UB (or the ISD::DELETED_NODE assert) if we
    happened to replace a node during UpdateChains, because it would be
    left in the list we were iterating over. This nulls out the pointer
    when that happens so that we can avoid the issue.
    
    Fixes llvm.org/PR31710
    
    llvm-svn: 293522
    8f520a73
Loading