summaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-22 13:52:19 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-22 13:52:19 +0000
commit1957dffb70bbcde6a29342f407e4982916e92eb9 (patch)
treee0a9686490bdfe3c1573a7e822c048231e51711d /gcc/fold-const.c
parent4349a1fa86c2680eb1bb8fbf21b4caa440a3413d (diff)
downloadgcc-1957dffb70bbcde6a29342f407e4982916e92eb9.tar.gz
2012-03-22 Richard Guenther <rguenther@suse.de>
PR middle-end/52666 * fold-const.c (fold_ternary_loc): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 33b8dc83b8b..1e91bac9970 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -14012,7 +14012,7 @@ fold_ternary_loc (location_t loc, enum tree_code code, tree type,
/* Need bit-shifting of the buffer to relax the following. */
&& tree_low_cst (op2, 1) % BITS_PER_UNIT == 0)
{
- unsigned HOST_WIDE_INT bitpos = tree_low_cst (op1, 2);
+ unsigned HOST_WIDE_INT bitpos = tree_low_cst (op2, 1);
unsigned HOST_WIDE_INT bitsize = tree_low_cst (op1, 1);
unsigned HOST_WIDE_INT clen;
clen = tree_low_cst (TYPE_SIZE_UNIT (TREE_TYPE (arg0)), 1);