getFirstInsertionPt's return value must be checked for validity before
casting it to Instruction*. Don't attempt to insert casts after a phi in
a catchswitch block.
Fixes PR45033, introduced in D37832.
Differential D75381
[WinEH] Fix inttoptr+phi optimization in presence of catchswitch rnk on Feb 28 2020, 1:07 PM. Authored by
Details getFirstInsertionPt's return value must be checked for validity before Fixes PR45033, introduced in D37832.
Diff Detail
Event Timeline
|
When you say, "a block with no insertion point", I'd add, "for example, a catchswitch block." I don't think that it's otherwise obvious how one has a block with no insertion point.