(c_expand_return): Return if convert_for_assignment returns
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 3 Dec 1993 12:06:46 +0000 (07:06 -0500)
committerRichard 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

index 15428e4dfd32c35b7f53dab9fa2e4846dd701255..ed5fcdcbcec0a2c64e8ea75c6b42f12f47db55c6 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;