Commit 123485ca by Jan Hubicka Committed by Jan Hubicka

cgraph.c (cgraph_resolve_speculation): Use semantical equivalency test.

	* cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
	test.

From-SVN: r202888
parent d70b0f1f
2013-09-25 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
test.
2013-09-25 Marek Polacek <polacek@redhat.com> 2013-09-25 Marek Polacek <polacek@redhat.com>
PR sanitizer/58420 PR sanitizer/58420
......
...@@ -1188,7 +1188,9 @@ cgraph_resolve_speculation (struct cgraph_edge *edge, tree callee_decl) ...@@ -1188,7 +1188,9 @@ cgraph_resolve_speculation (struct cgraph_edge *edge, tree callee_decl)
gcc_assert (edge->speculative); gcc_assert (edge->speculative);
cgraph_speculative_call_info (edge, e2, edge, ref); cgraph_speculative_call_info (edge, e2, edge, ref);
if (ref->referred->symbol.decl != callee_decl) if (!callee_decl
|| !symtab_semantically_equivalent_p ((symtab_node) ref->referred,
symtab_get_node (callee_decl)))
{ {
if (dump_file) if (dump_file)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment