diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-11-10 09:16:32 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-11-10 09:18:11 -0500 |
commit | ef02831f0a4e3b3ccaa45a5589e4cabecbf527ab (patch) | |
tree | 31fa4f248e89b8780bd205344fb3e83dd4560954 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp | |
parent | 4ff246fef25e1353c6f5ebbde625ae30953def7a (diff) | |
download | bcm5719-llvm-ef02831f0a4e3b3ccaa45a5589e4cabecbf527ab.tar.gz bcm5719-llvm-ef02831f0a4e3b3ccaa45a5589e4cabecbf527ab.zip |
[InstCombine] avoid crash from deleting an instruction that still has uses (PR43723)
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