This fixes an ICE because gimple_bb of a default def stmt is NULL.
Just don't do anything here, we're not going to adjust anything
anyway for them.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2013-02-20  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/56398
        * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
        SSA default defs.

Index: gcc/tree-vect-loop-manip.c
===================================================================
--- gcc/tree-vect-loop-manip.c  (revision 196169)
+++ gcc/tree-vect-loop-manip.c  (working copy)
@@ -187,6 +187,7 @@ adjust_debug_stmts (tree from, tree to,
 
   if (MAY_HAVE_DEBUG_STMTS
       && TREE_CODE (from) == SSA_NAME
+      && ! SSA_NAME_IS_DEFAULT_DEF (from)
       && ! virtual_operand_p (from))
     {
       ai.from = from;

Reply via email to