From: Richard Guenther Date: Fri, 8 Apr 2011 14:36:14 +0000 (+0000) Subject: gimple.c (gimple_call_flags): Remove kludge. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97e03fa1701a1a53a7e126dc0478832bd1858b5b;p=gcc.git gimple.c (gimple_call_flags): Remove kludge. 2011-04-08 Richard Guenther * gimple.c (gimple_call_flags): Remove kludge. From-SVN: r172190 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3d5e486e3bd..619caebdc06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-04-08 Richard Guenther + + * gimple.c (gimple_call_flags): Remove kludge. + 2011-04-08 Alexander Monakov * sel-sched.c (sel_region_init): Move call to diff --git a/gcc/gimple.c b/gcc/gimple.c index 3183711b96f..96dacf81b0b 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -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;