aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorhanbeom <kese111@gmail.com>2024-03-06 17:42:33 +0900
committerGitHub <noreply@github.com>2024-03-06 09:42:33 +0100
commit6cdf596c52f028ea7d150e0696f967fbff443ccf (patch)
tree37c1d71add50b4c71408fda1e26c28d49a4c66e5 /clang/lib/Sema/DeclSpec.cpp
parent9f45c5e1a65a1abf4920b617d36ed05e73c04bea (diff)
downloadllvm-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