diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-04 19:27:11 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-04 19:27:11 +0000 |
commit | ecce391740b84bfa5f666614fa34707e867cad04 (patch) | |
tree | c0b6a3a93aec0b8e0639c706a839b4330651cf2e /gcc/tree-tailcall.c | |
parent | b585d73580ebbbdc313f218d818acaa8f88e378c (diff) | |
download | gcc-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.c | 3 |
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); |