https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92608

--- Comment #2 from prathamesh3492 at gcc dot gnu.org ---
Author: prathamesh3492
Date: Thu Nov 21 20:20:36 2019
New Revision: 278598

URL: https://gcc.gnu.org/viewcvs?rev=278598&root=gcc&view=rev
Log:
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.

testsuite/
        * gcc.dg/torture/pr92608.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr92608.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-loop-unswitch.c

Reply via email to