Commit 97e03fa1 by Richard Guenther Committed by Richard Biener

gimple.c (gimple_call_flags): Remove kludge.

2011-04-08  Richard Guenther  <rguenther@suse.de>

	* gimple.c (gimple_call_flags): Remove kludge.

From-SVN: r172190
parent 8c41bcca
2011-04-08 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_call_flags): Remove kludge.
2011-04-08 Alexander Monakov <amonakov@ispras.ru>
* sel-sched.c (sel_region_init): Move call to
......
......@@ -1784,16 +1784,7 @@ gimple_call_flags (const_gimple stmt)
if (decl)
flags = flags_from_decl_or_type (decl);
else
{
tree t = TREE_TYPE (gimple_call_fn (stmt));
/* ??? We can end up being called from gimple_set_modified from
gsi_remove in which case the function being called can
be a released SSA name. Give up in that case. */
if (t)
flags = flags_from_decl_or_type (gimple_call_fntype (stmt));
else
flags = 0;
}
flags = flags_from_decl_or_type (gimple_call_fntype (stmt));
if (stmt->gsbase.subcode & GF_CALL_NOTHROW)
flags |= ECF_NOTHROW;
......
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