(substitute_in_expr, case COMPONENT_REF): Ignore if inner

PLACEHOLDER_EXPR has not yet been initialized.

From-SVN: r11547
This commit is contained in:
Richard Kenner 1996-03-16 19:23:14 -05:00
parent 0c05582760
commit 6cba9fcc21

View File

@ -1,5 +1,5 @@
/* Language-independent node constructors for parse phase of GNU compiler.
Copyright (C) 1987, 88, 92, 93, 94, 1995 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
This file is part of GNU CC.
@ -2286,6 +2286,12 @@ substitute_in_expr (exp, f, r)
&& TREE_OPERAND (exp, 1) == f)
return r;
/* If this expression hasn't been completed let, leave it
alone. */
if (TREE_CODE (inner) == PLACEHOLDER_EXPR
&& TREE_TYPE (inner) == 0)
return exp;
new = fold (build (code, TREE_TYPE (exp),
substitute_in_expr (TREE_OPERAND (exp, 0), f, r),
TREE_OPERAND (exp, 1)));