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
This commit is contained in:
Manuel López-Ibáñez 2009-05-19 15:41:17 +00:00
parent bbb9d91f19
commit db91d9ef7b
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
* c-common.c (warn_logical_operator): Remove unnecessary
conditionals.
2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.

View File

@ -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;