diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2009-05-19 15:41:17 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2009-05-19 15:41:17 +0000 |
commit | db91d9ef7ba61564f1937d1f9d873ca90620fd2d (patch) | |
tree | b3bf86ef3b4afae0a08b928343179f74fc5a0785 /gcc/c-common.c | |
parent | bbb9d91f19f1349a49dd24667ce5b0a8912769b1 (diff) | |
download | gcc-db91d9ef7ba61564f1937d1f9d873ca90620fd2d.zip gcc-db91d9ef7ba61564f1937d1f9d873ca90620fd2d.tar.gz gcc-db91d9ef7ba61564f1937d1f9d873ca90620fd2d.tar.bz2 |
c-common.c (warn_logical_operator): Remove unnecessary conditionals.
2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
* c-common.c (warn_logical_operator): Remove unnecessary
conditionals.
From-SVN: r147708
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index fadbdaa..74f4817 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1788,10 +1788,7 @@ warn_logical_operator (location_t location, enum tree_code code, tree type, if (lhs && rhs && operand_equal_p (lhs, rhs, 0) && merge_ranges (&in_p, &low, &high, in0_p, low0, high0, in1_p, low1, high1) - && 0 != (tem = build_range_check (type, - lhs != 0 ? lhs - : rhs != 0 ? rhs : integer_zero_node, - in_p, low, high))) + && 0 != (tem = build_range_check (type, lhs, in_p, low, high))) { if (TREE_CODE (tem) != INTEGER_CST) return; |