(build_conditional_expr): If OP1 is null, set both OP1 and ORIG_OP1 to IFEXP.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 19 Mar 1996 00:42:40 +0000 (19:42 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 19 Mar 1996 00:42:40 +0000 (19:42 -0500)
From-SVN: r11558

gcc/c-typeck.c

index 3c4f26847e20fefe5d24c0128b2c21d1d0e09e91..d17a61df5a54afd9943bc5249bb1bbcbca2ca519 100644 (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));