summaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-08 14:36:14 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-08 14:36:14 +0000
commitd71dc717ba40c5b5afd128b088f287c122751427 (patch)
treead6db6442cfa84e6087b78f7624059ae3310ce3a /gcc/gimple.c
parent9660f5f931d63fe8d53138b4fdf91a4033f67e69 (diff)
downloadgcc-d71dc717ba40c5b5afd128b088f287c122751427.tar.gz
2011-04-08 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_call_flags): Remove kludge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172190 138bc75d-0d04-0410-961f-82ee72b054a4
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 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;