diff mbox

Minor tweak to fold_binary_loc

Message ID 1507539.O3YM67bpB5@polaris
State New
Headers show

Commit Message

Eric Botcazou Nov. 15, 2013, 11:07 a.m. UTC
Tested on x86_64-suse-linux, applied on the mainline as obvious.


2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>

	* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
diff mbox

Patch

Index: fold-const.c
===================================================================
--- fold-const.c	(revision 204835)
+++ fold-const.c	(working copy)
@@ -13824,8 +13824,7 @@  fold_binary_loc (location_t loc,
 		   and X >= signed_max+1 because previous transformations.  */
 		if (code == LE_EXPR || code == GT_EXPR)
 		  {
-		    tree st;
-		    st = signed_type_for (TREE_TYPE (arg1));
+		    tree st = signed_type_for (arg1_type);
 		    return fold_build2_loc (loc,
 					code == LE_EXPR ? GE_EXPR : LT_EXPR,
 					type, fold_convert_loc (loc, st, arg0),