summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-address.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-20 15:56:14 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-20 15:56:14 +0000
commitccdcac65a4117121a5e1b7fd8e412393f98ad3f0 (patch)
tree6e405c73edd17e282adfdf09184d5bfa29c9c089 /gcc/tree-ssa-address.c
parent34d75cfff7f4f9ec619e075b3c295c17927a0c47 (diff)
downloadgcc-ccdcac65a4117121a5e1b7fd8e412393f98ad3f0.tar.gz
* tree-ssa-address.c (tree_mem_ref_addr): Convert offset to
sizetype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163409 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-address.c')
-rw-r--r--gcc/tree-ssa-address.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c
index 305a0135e55..77dfa60000d 100644
--- a/gcc/tree-ssa-address.c
+++ b/gcc/tree-ssa-address.c
@@ -299,6 +299,7 @@ tree_mem_ref_addr (tree type, tree mem_ref)
if (offset && !integer_zerop (offset))
{
+ offset = fold_convert (sizetype, offset);
if (addr_off)
addr_off = fold_build2 (PLUS_EXPR, sizetype, addr_off, offset);
else