Yingwei Zheng 56777e7da2
[SimplifyCFG] Avoid use-after-free when removing incoming values from PHI nodes (#165744)
`PHINode::removeIncomingValue` removes itself when there are no incoming
edges. Then we cannot use it to retrieve the next instruction.

Closes https://github.com/llvm/llvm-project/issues/165301.
2025-10-31 10:30:29 +08:00
..