Commit 700473ab by Jason Merrill Committed by Jason Merrill

tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't been expanded.

        * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
        been expanded.

From-SVN: r32814
parent f2704b9f
2000-03-29 Jason Merrill <jason@casey.cygnus.com>
* tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
been expanded.
Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (bit_from_pos, byte_from_pos): New functions.
......
......@@ -2605,6 +2605,13 @@ unsave_expr_1 (expr)
break;
case TARGET_EXPR:
/* Don't mess with a TARGET_EXPR that hasn't been expanded.
It's OK for this to happen if it was part of a subtree that
isn't immediately expanded, such as operand 2 of another
TARGET_EXPR. */
if (TREE_OPERAND (expr, 1))
break;
TREE_OPERAND (expr, 1) = TREE_OPERAND (expr, 3);
TREE_OPERAND (expr, 3) = NULL_TREE;
break;
......
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