PR java/17329:
* java-gimplify.c (java_gimplify_expr) <SAVE_EXPR>: Ignore case
where operand is null.
From-SVN: r87961
+2004-09-23 Tom Tromey <tromey@redhat.com>
+
+ PR java/17329:
+ * java-gimplify.c (java_gimplify_expr) <SAVE_EXPR>: Ignore case
+ where operand is null.
+
2004-09-23 Tom Tromey <tromey@redhat.com>
PR java/17380:
return GS_UNHANDLED;
case SAVE_EXPR:
- if (TREE_CODE (TREE_OPERAND (*expr_p, 0)) == VAR_DECL)
+ /* Note that we can see <save_expr NULL> if the save_expr was
+ already handled by gimplify_save_expr. */
+ if (TREE_OPERAND (*expr_p, 0) != NULL_TREE
+ && TREE_CODE (TREE_OPERAND (*expr_p, 0)) == VAR_DECL)
TREE_OPERAND (*expr_p, 0)
= java_replace_reference (TREE_OPERAND (*expr_p, 0),
/* want_lvalue */ false);