[all-commits] [llvm/llvm-project] 56777e: [SimplifyCFG] Avoid use-after-free when removing i...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Thu Oct 30 19:30:50 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56777e7da2cb30f72a3ddc9861a2fbe3b9adbc6b
https://github.com/llvm/llvm-project/commit/56777e7da2cb30f72a3ddc9861a2fbe3b9adbc6b
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2025-10-31 (Fri, 31 Oct 2025)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
A llvm/test/Transforms/SimplifyCFG/pr165301.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list