From: Richard Kenner Date: Tue, 19 Mar 1996 00:42:40 +0000 (-0500) Subject: (build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d4f21f36ffe657943a061a6c46b0a3cf77a1acd;p=gcc.git (build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP. From-SVN: r11558 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 3c4f26847e2..d17a61df5a5 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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));