diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-03-04 20:57:14 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-03-04 20:57:14 +0000 |
commit | 6e32b46b1ddc79f73c18631df04735c4d453f830 (patch) | |
tree | d826e373266513a5e17e0eed9b5e56bdb099a06b /lldb/source/Host/netbsd/Host.cpp | |
parent | fc778fa2c599cd09f041037987171fdc8c202be8 (diff) | |
download | bcm5719-llvm-6e32b46b1ddc79f73c18631df04735c4d453f830.tar.gz bcm5719-llvm-6e32b46b1ddc79f73c18631df04735c4d453f830.zip |
[ConstantHoisting] avoid hang/crash from unreachable blocks (PR40930)
I'm not too familiar with this pass, so there might be a better
solution, but this appears to fix the degenerate:
PR40930
PR40931
PR40932
PR40934
...without affecting any real-world code.
As we've seen in several other passes, when we have unreachable blocks,
they can contain semi-bogus IR and/or cause unexpected conditions. We
would not typically expect these patterns to make it this far, but we
have to guard against them anyway.
llvm-svn: 355337
Diffstat (limited to 'lldb/source/Host/netbsd/Host.cpp')
0 files changed, 0 insertions, 0 deletions