* ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
authorJan Hubicka <jh@suse.cz>
Sat, 11 Jun 2011 14:18:05 +0000 (16:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 11 Jun 2011 14:18:05 +0000 (14:18 +0000)
From-SVN: r174954

gcc/ChangeLog
gcc/ipa.c

index 73c5fb46a871d994df39fad2b92b364be589ae0c..4dd8a226920fe8845a8ac3005805256d8d47841c 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-11  Jan Hubicka  <jh@suse.cz>
+
+       * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
+
 2011-06-11  Jan Hubicka  <jh@suse.cz>
 
        * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
index a80f9ba2ba47ba06316b2a4d3661f496268e4ba6..4fd3b7ce598e0bab442eb0fa5724928df4af9640 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -571,7 +571,7 @@ cgraph_comdat_can_be_unshared_p (struct cgraph_node *node)
          address taken.  */
       for (next = node->same_comdat_group;
           next != node; next = next->same_comdat_group)
-       if (cgraph_address_taken_from_non_vtable_p (node)
+       if (cgraph_address_taken_from_non_vtable_p (next)
            && !DECL_VIRTUAL_P (next->decl))
          return false;
     }