projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec044ce
)
(c_expand_return): Return if convert_for_assignment returns
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 3 Dec 1993 12:06:46 +0000
(07:06 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 3 Dec 1993 12:06:46 +0000
(07:06 -0500)
error_mark_node.
From-SVN: r6185
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 15428e4dfd32c35b7f53dab9fa2e4846dd701255..ed5fcdcbcec0a2c64e8ea75c6b42f12f47db55c6 100644
(file)
--- a/
gcc/c-typeck.c
+++ b/
gcc/c-typeck.c
@@
-6155,6
+6155,10
@@
c_expand_return (retval)
tree t = convert_for_assignment (valtype, retval, "return",
NULL_TREE, NULL_TREE, 0);
tree res = DECL_RESULT (current_function_decl);
+
+ if (t == error_mark_node)
+ return;
+
t = build (MODIFY_EXPR, TREE_TYPE (res),
res, convert (TREE_TYPE (res), t));
TREE_SIDE_EFFECTS (t) = 1;