Skip to content
  • Nick Lewycky's avatar
    Fix logical error when detecting lifetime intrinsics. · 50f4966c
    Nick Lewycky authored
    Don't replace a gep/bitcast with 'undef' because that will form a "free(undef)"
    which in turn means "unreachable". What we wanted was a no-op. Instead, analyze
    the whole tree and look for all the instructions we need to delete first, then
    delete them second, not relying on the use_list to stay consistent.
    
    llvm-svn: 136752
    50f4966c
Loading