Commit 70768eda by Richard Kenner

(c_expand_return): Return if convert_for_assignment returns

error_mark_node.

From-SVN: r6185
parent ec044cec
...@@ -6155,6 +6155,10 @@ c_expand_return (retval) ...@@ -6155,6 +6155,10 @@ c_expand_return (retval)
tree t = convert_for_assignment (valtype, retval, "return", tree t = convert_for_assignment (valtype, retval, "return",
NULL_TREE, NULL_TREE, 0); NULL_TREE, NULL_TREE, 0);
tree res = DECL_RESULT (current_function_decl); tree res = DECL_RESULT (current_function_decl);
if (t == error_mark_node)
return;
t = build (MODIFY_EXPR, TREE_TYPE (res), t = build (MODIFY_EXPR, TREE_TYPE (res),
res, convert (TREE_TYPE (res), t)); res, convert (TREE_TYPE (res), t));
TREE_SIDE_EFFECTS (t) = 1; TREE_SIDE_EFFECTS (t) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment