(build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP.

From-SVN: r11558
This commit is contained in:
Richard Kenner 1996-03-18 19:42:40 -05:00
parent 9cd7239f1c
commit 4d4f21f36f

View File

@ -3349,7 +3349,7 @@ build_conditional_expr (ifexp, op1, op2)
{
if (pedantic)
pedwarn ("ANSI C forbids omitting the middle term of a ?: expression");
ifexp = op1 = save_expr (ifexp);
ifexp = orig_op1 = op1 = save_expr (ifexp);
}
ifexp = truthvalue_conversion (default_conversion (ifexp));