summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-11-10 17:24:48 -0500
committerSanjay Patel <spatel@rotateright.com>2019-11-10 17:26:36 -0500
commit56b2aee1875a1ee47ddf859a6584f8728787fb7b (patch)
treee202d5463f8a4cb63ed08a493fe861952248e9ff /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
parentc250ebf7bcaa85f5366c651c2efdda828258cb27 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud