aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-08 14:36:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-04-08 14:36:14 +0000
commit97e03fa1701a1a53a7e126dc0478832bd1858b5b (patch)
treead6db6442cfa84e6087b78f7624059ae3310ce3a /gcc/gimple.c
parent8c41bcca5b07a182bcc1fe6bc83a25a36cde2c58 (diff)
downloadgcc-97e03fa1701a1a53a7e126dc0478832bd1858b5b.zip
gcc-97e03fa1701a1a53a7e126dc0478832bd1858b5b.tar.gz
gcc-97e03fa1701a1a53a7e126dc0478832bd1858b5b.tar.bz2
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
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index 3183711..96dacf8 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;