cgraph.c (cgraph_turn_edge_to_speculative): Mark target node as having address taken.
authorJan Hubicka <jh@suse.cz>
Fri, 23 Aug 2013 18:33:45 +0000 (20:33 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 23 Aug 2013 18:33:45 +0000 (18:33 +0000)
* cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
as having address taken.

From-SVN: r201948

gcc/ChangeLog
gcc/cgraph.c

index 1f99c1e73226d9c85a81aa686b8937d3b0ccee81..f270ec9095f98d05103deee859993cf1c15b4679 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-23  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
+       as having address taken.
+
 2013-08-23  Jan Hubicka  <jh@suse.cz>
 
        * ipa-utils.h (method_class_type): Declare.
index 19e64b7977629a085448dc7b191eb054a0a48a81..24770812e6286196e6e1bbdf75021bcdbea2c7df 100644 (file)
@@ -1097,6 +1097,7 @@ cgraph_turn_edge_to_speculative (struct cgraph_edge *e,
                              IPA_REF_ADDR, e->call_stmt);
   ref->lto_stmt_uid = e->lto_stmt_uid;
   ref->speculative = e->speculative;
+  cgraph_mark_address_taken_node (n2);
   return e2;
 }