summaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 8a1f09bc33e..0543265d204 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -342,7 +342,7 @@ ao_ref_from_mem (ao_ref *ref, const_rtx mem)
|| (DECL_P (ref->base)
&& (DECL_SIZE (ref->base) == NULL_TREE
|| TREE_CODE (DECL_SIZE (ref->base)) != INTEGER_CST
- || wi::ltu_p (DECL_SIZE (ref->base),
+ || wi::ltu_p (wi::to_offset (DECL_SIZE (ref->base)),
ref->offset + ref->size)))))
return false;