From 97e03fa1701a1a53a7e126dc0478832bd1858b5b Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 8 Apr 2011 14:36:14 +0000 Subject: [PATCH] gimple.c (gimple_call_flags): Remove kludge. 2011-04-08 Richard Guenther * gimple.c (gimple_call_flags): Remove kludge. From-SVN: r172190 --- gcc/ChangeLog | 4 ++++ gcc/gimple.c | 11 +---------- 2 files changed, 5 insertions(+), 10 deletions(-) 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; -- 2.30.2