aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-11-15 11:07:40 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-11-15 11:07:40 +0000
commitd877729c89a04e57f4acdff574120f7e1dd275d0 (patch)
tree978a9c288e4b0b069e75cee954974e866a9a543c /gcc/fold-const.c
parentc8e1377bf99a81141b2216e7826ea69978968627 (diff)
downloadgcc-d877729c89a04e57f4acdff574120f7e1dd275d0.zip
gcc-d877729c89a04e57f4acdff574120f7e1dd275d0.tar.gz
gcc-d877729c89a04e57f4acdff574120f7e1dd275d0.tar.bz2
* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
From-SVN: r204839
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 5ca7691..d08d0cd 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -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),