Revert "[InstCombine] avoid crash from deleting an instruction that still has uses...
authorSanjay Patel <spatel@rotateright.com>
Sun, 10 Nov 2019 23:47:49 +0000 (18:47 -0500)
committerSanjay Patel <spatel@rotateright.com>
Sun, 10 Nov 2019 23:47:49 +0000 (18:47 -0500)
commitd115b9fd4a4b87c01db34dca99db434867b98976
tree07f7b1461d99524f7650b56e87678a7e47eb0b99
parent56b2aee1875a1ee47ddf859a6584f8728787fb7b
Revert "[InstCombine] avoid crash from deleting an instruction that still has uses (PR43723) (2nd try)"

This reverts commit 56b2aee1875a1ee47ddf859a6584f8728787fb7b.
Still causes a use-after-free on sanitizer bots.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/builtin-object-size-ptr.ll