https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92608
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5c82f97ad5b4021d64935ef5a489d410fe9eb202 commit r9-9478-g5c82f97ad5b4021d64935ef5a489d410fe9eb202 Author: Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> Date: Thu Nov 21 20:20:36 2019 +0000 Use safe_dyn_cast instead of dyn_cast in find_loop_guard to fix PR92608. 2019-11-22 Prathamesh Kulkarni <prathamesh.kulka...@linaro.org> PR tree-optimization/92608 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead of dyn_cast. gcc/testsuite/ * gcc.dg/torture/pr92608.c: New test. (cherry picked from commit b30e83f809b2aa65222eb969f8b4523e5e1961f2)