Skip to content

Commit

Permalink
* expr.c (expand_expr): Bail earlier if we get an error_mark_node.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34940 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jason committed Jul 10, 2000
1 parent bdcbc55 commit 87ec3f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2000-07-09 Jason Merrill <jason@redhat.com>

* expr.c (expand_expr): Bail earlier if we get an error_mark_node.

* tree.h (STRIP_NOPS): Check for error_mark_node.
(STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
(dwarf2out_*): Remove duplicate declarations.
Expand Down
3 changes: 3 additions & 0 deletions gcc/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -7104,6 +7104,9 @@ expand_expr (exp, target, tmode, modifier)
case NOP_EXPR:
case CONVERT_EXPR:
case REFERENCE_EXPR:
if (TREE_OPERAND (exp, 0) == error_mark_node)
return error_mark_node;

if (TREE_CODE (type) == UNION_TYPE)
{
tree valtype = TREE_TYPE (TREE_OPERAND (exp, 0));
Expand Down

0 comments on commit 87ec3f7

Please sign in to comment.