aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-object-size.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-object-size.c')
-rw-r--r--gcc/tree-object-size.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c
index 9c510bb..7a3d775 100644
--- a/gcc/tree-object-size.c
+++ b/gcc/tree-object-size.c
@@ -595,7 +595,7 @@ plus_expr_object_size (struct object_size_info *osi, tree var, tree value)
{
unsigned HOST_WIDE_INT off = tree_low_cst (op1, 1);
- bytes = compute_builtin_object_size (value, object_size_type);
+ bytes = compute_builtin_object_size (op0, object_size_type);
if (off > offset_limit)
bytes = unknown[object_size_type];
else if (off > bytes)