mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 07:50:27 +08:00
(build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP.
From-SVN: r11558
This commit is contained in:
parent
9cd7239f1c
commit
4d4f21f36f
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user