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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|10.0                        |11.0
           Assignee|marxin at gcc dot gnu.org          |rguenth at gcc dot 
gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Since we're really want to insert on the edge and merely assert that will be
possible we should instead do

                      else
                        {
                          /* When we want to insert after a def where the
                             defining stmt throws then insert on the fallthru
                             edge.  */
                          edge e = find_fallthru_edge
                                     (gimple_bb (insert_after->stmt)->succs);
                          basic_block new_bb
                            = gsi_insert_seq_on_edge_immediate (e, ctor_seq);
                          gcc_assert (!new_bb);
                        }

possibly even allowing a new BB to be created (though our region collection
restrictions should not make this necessary).  Let me take this.

Reply via email to