From ccdcac65a4117121a5e1b7fd8e412393f98ad3f0 Mon Sep 17 00:00:00 2001 From: jakub Date: Fri, 20 Aug 2010 15:56:14 +0000 Subject: * 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 --- gcc/tree-ssa-address.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/tree-ssa-address.c') 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 -- cgit v1.2.1