diff options
author | hanbeom <kese111@gmail.com> | 2024-03-06 17:42:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 09:42:33 +0100 |
commit | 6cdf596c52f028ea7d150e0696f967fbff443ccf (patch) | |
tree | 37c1d71add50b4c71408fda1e26c28d49a4c66e5 /clang/lib/Sema/DeclSpec.cpp | |
parent | 9f45c5e1a65a1abf4920b617d36ed05e73c04bea (diff) | |
download | llvm-6cdf596c52f028ea7d150e0696f967fbff443ccf.zip llvm-6cdf596c52f028ea7d150e0696f967fbff443ccf.tar.gz llvm-6cdf596c52f028ea7d150e0696f967fbff443ccf.tar.bz2 |
[InstCombine] If inst in unreachable refers to an inst change it to poison (#78444)
Instructions in unreachable basic blocks are removed, but terminators
are not. In this case, even instructions that are only referenced by
a terminator, such as a return instruction, cannot be processed
properly.
This patch changes the operand of a return instruction in an
unreachable basic block to poison if it refers to the instruction,
allowing the instruction to be properly processed.
Fixes #65107.
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
0 files changed, 0 insertions, 0 deletions