tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is an SSA_NAME rather...
authorMartin Jambor <mjambor@suse.cz>
Wed, 9 Sep 2009 14:44:23 +0000 (16:44 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 9 Sep 2009 14:44:23 +0000 (16:44 +0200)
2009-09-09  Martin Jambor  <mjambor@suse.cz>

* tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
an SSA_NAME rather than a is_gimple_variable.

From-SVN: r151560

gcc/ChangeLog
gcc/tree-cfg.c

index f423067..dc1ad37 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-09  Martin Jambor  <mjambor@suse.cz>
+
+       * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
+       an SSA_NAME rather than a is_gimple_variable.
+
 2009-09-09  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/41317
index 81d95d7..3996f08 100644 (file)
@@ -4143,7 +4143,7 @@ verify_gimple_phi (gimple stmt)
   tree type = TREE_TYPE (gimple_phi_result (stmt));
   unsigned i;
 
-  if (!is_gimple_variable (gimple_phi_result (stmt)))
+  if (TREE_CODE (gimple_phi_result (stmt)) != SSA_NAME)
     {
       error ("Invalid PHI result");
       return true;