summaryrefslogtreecommitdiffstats
path: root/gcc/cp/cvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r--gcc/cp/cvt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c
index 81d05777308..960552c8e6a 100644
--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -936,10 +936,8 @@ convert_to_void (expr, implicit)
tree new_op1 = convert_to_void (op1, implicit);
tree new_op2 = convert_to_void (op2, implicit);
- if (new_op1 != op1 || new_op2 != op2)
- expr = build (COND_EXPR,
- implicit ? TREE_TYPE (expr) : void_type_node,
- TREE_OPERAND (expr, 0), new_op1, new_op2);
+ expr = build (COND_EXPR, void_type_node,
+ TREE_OPERAND (expr, 0), new_op1, new_op2);
break;
}
OpenPOWER on IntegriCloud