Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [WinEH] Fix inttoptr+phi optimization in presence of catchswitch | Reid Kleckner | 2020-03-02 | 1 | -0/+77 |
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. Reviewed By: davidxl, hfinkel Differential Revision: https://reviews.llvm.org/D75381 (cherry picked from commit 1adbe86d87bd4ecffc73ab17c7da56f44816f424) |