diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-11-10 17:24:48 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-11-10 17:26:36 -0500 |
commit | 56b2aee1875a1ee47ddf859a6584f8728787fb7b (patch) | |
tree | e202d5463f8a4cb63ed08a493fe861952248e9ff /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | c250ebf7bcaa85f5366c651c2efdda828258cb27 (diff) | |
download | bcm5719-llvm-56b2aee1875a1ee47ddf859a6584f8728787fb7b.tar.gz bcm5719-llvm-56b2aee1875a1ee47ddf859a6584f8728787fb7b.zip |
[InstCombine] avoid crash from deleting an instruction that still has uses (PR43723) (2nd try)
Re-try rGef02831f0a4e (reverted due to use-after-free), but bail out completely
if we encounter an unexpected llvm.invariant.start.
We gather a set of white-listed instructions in isAllocSiteRemovable() and then
replace/erase them. But we don't know in general if the instructions in the set
have uses amongst themselves, so order of deletion makes a difference.
There's already a special-case for the llvm.objectsize intrinsic, so add another
for llvm.invariant.end.
Should fix:
https://bugs.llvm.org/show_bug.cgi?id=43723
Differential Revision: https://reviews.llvm.org/D69977
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions