forked from OSchip/llvm-project
4172dbab5d
This patch fixes a problem that occurs in LowerSwitch when a switch statement has a PHI node as its condition, and the PHI node only has two incoming blocks, and one of those incoming blocks is through an unreachable default in the switch statement. When this condition occurs, LowerSwitch holds a pointer to the condition value, but removes the switch block as a predecessor of the PHI block, causing the PHI node to be replaced. LowerSwitch then tries to use its stale pointer to the original condition value, causing a crash. Differential Revision: https://reviews.llvm.org/D62560 llvm-svn: 362427 |
||
---|---|---|
.. | ||
2003-05-01-PHIProblem.ll | ||
2003-08-23-EmptySwitch.ll | ||
2004-03-13-SwitchIsDefaultCrash.ll | ||
2014-06-10-SwitchContiguousOpt.ll | ||
2014-06-11-SwitchDefaultUnreachableOpt.ll | ||
2014-06-23-PHIlowering.ll | ||
condition-phi-unreachable-default.ll | ||
delete-default-block-crash.ll | ||
do-not-handle-impossible-values.ll | ||
feature.ll | ||
fold-popular-case-to-unreachable-default.ll | ||
phi-in-dead-block.ll |