OSDN Git Service

(c_expand_return): Return if convert_for_assignment returns
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 1993 12:06:46 +0000 (12:06 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 1993 12:06:46 +0000 (12:06 +0000)
error_mark_node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6185 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-typeck.c

index 15428e4..ed5fcdc 100644 (file)
@@ -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;