https://gcc.gnu.org/g:60aa2da13adec95f26b546e0a815d9c8974b6bb7

commit 60aa2da13adec95f26b546e0a815d9c8974b6bb7
Author: Mikael Morin <[email protected]>
Date:   Thu Oct 9 14:06:02 2025 +0200

    gimple-simulate: Correction offset memcpy

Diff:
---
 gcc/gimple-simulate.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/gimple-simulate.cc b/gcc/gimple-simulate.cc
index d713009b53ae..055fc756b7db 100644
--- a/gcc/gimple-simulate.cc
+++ b/gcc/gimple-simulate.cc
@@ -2732,7 +2732,7 @@ simul_scope::simulate_call (gcall *g)
       unsigned HOST_WIDE_INT uhwi_len2 = wi_len2.to_uhwi ();
       data_value data_src = src.get_at (addr1.offset, uhwi_len2);
       printer.print_value_update (*this, data_target, data_src);
-      dest_val.set_at (0, uhwi_len2, src, addr1.offset);
+      dest_val.set_at (addr0.offset, uhwi_len2, src, addr1.offset);
       storage0.set (dest_val);
     }
   else if (gimple_call_builtin_p (g, BUILT_IN_MEMSET))

Reply via email to