summaryrefslogtreecommitdiff
path: root/gcc/tree-tailcall.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-04 19:27:11 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-04 19:27:11 +0000
commitecce391740b84bfa5f666614fa34707e867cad04 (patch)
treec0b6a3a93aec0b8e0639c706a839b4330651cf2e /gcc/tree-tailcall.c
parentb585d73580ebbbdc313f218d818acaa8f88e378c (diff)
downloadgcc-ecce391740b84bfa5f666614fa34707e867cad04.tar.gz
* tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128101 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r--gcc/tree-tailcall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c
index 8651b60fc0d..3e15b1b6ae0 100644
--- a/gcc/tree-tailcall.c
+++ b/gcc/tree-tailcall.c
@@ -800,7 +800,8 @@ eliminate_tail_call (struct tailcall *t)
/* Result of the call will no longer be defined. So adjust the
SSA_NAME_DEF_STMT accordingly. */
- SSA_NAME_DEF_STMT (rslt) = build_empty_stmt ();
+ if (TREE_CODE (rslt) == SSA_NAME)
+ SSA_NAME_DEF_STMT (rslt) = build_empty_stmt ();
}
bsi_remove (&t->call_bsi, true);