diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-15 19:21:36 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-15 19:21:36 +0000 |
commit | 4373271fb1885ee4086f9fec7d83089cf35a037d (patch) | |
tree | acb7b0f1c68d8509c878af4ede777a27a9698f96 /gcc/ada/trans.c | |
parent | ed5c6f54c00fbbc9e99f85d4ebf1ed0a5a40e39a (diff) | |
download | gcc-4373271fb1885ee4086f9fec7d83089cf35a037d.tar.gz |
* trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
to NULL_TREE on entry.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96528 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/trans.c')
-rw-r--r-- | gcc/ada/trans.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c index 9bcc45e5e63..7e6485557a4 100644 --- a/gcc/ada/trans.c +++ b/gcc/ada/trans.c @@ -3500,6 +3500,8 @@ gnat_to_gnu (Node_Id gnat_node) tree gnu_ret_val = NULL_TREE; /* The place to put the return value. */ tree gnu_lhs; + /* Avoid passing error_mark_node to RETURN_EXPR. */ + gnu_result = NULL_TREE; /* If we are dealing with a "return;" from an Ada procedure with parameters passed by copy in copy out, we need to return a record |