fold-const.c (fold_binary_loc): Fix copy-and-pasto.

2014-10-24  Richard Biener  <rguenther@suse.de>

	* fold-const.c (fold_binary_loc): Fix copy-and-pasto.

From-SVN: r216617
This commit is contained in:
Richard Biener 2014-10-24 07:57:51 +00:00 committed by Richard Biener
parent fa608e77c2
commit 4cf03f6897
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-10-24 Richard Biener <rguenther@suse.de>
* fold-const.c (fold_binary_loc): Fix copy-and-pasto.
2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
PR bootstrap/63632

View File

@ -10596,8 +10596,9 @@ fold_binary_loc (location_t loc,
TREE_OPERAND (arg1, 0));
tree arg11 = fold_convert_loc (loc, type,
TREE_OPERAND (arg1, 1));
tree tmp = fold_binary_loc (loc, MINUS_EXPR, type, arg0,
fold_convert_loc (loc, type, arg10));
tree tmp = fold_binary_loc (loc, MINUS_EXPR, type,
fold_convert_loc (loc, type, arg0),
arg10);
if (tmp)
return fold_build2_loc (loc, MINUS_EXPR, type, tmp, arg11);
}