authorgravatar for 4678790+dweiller@users.noreply.github.comDominic <4678790+dweiller@users.noreply.github.com> 2025-01-16 16:45:12+11:00
committergravatar for 4678790+dweiller@users.noreply.github.comDominic <4678790+dweiller@users.noreply.github.com> 2025-01-30 19:56:57+11:00
log63f5a80b7146cfe7b9034be683b4a8dfc29a1a25
tree62dd7d2b1a1b816b4304da0b56caed748a49c962
parent4db01eb13072f3ff98802a42448cba092e6837ac

compiler-rt: workaround miscompilation in memmove


1 files changed, 2 insertions(+), 1 deletions(-)

lib/compiler_rt/memmove.zig+2-1
......@@ -137,7 +137,8 @@ inline fn copyRange4(
137137 const d2 = src[pen..][0..copy_len].*;
138138 const d3 = src[last..][0..copy_len].*;
139139
140 dest[0..copy_len].* = d0;
140 // the slice dest[0..len] is needed to workaround -ODebug miscompilation
141 dest[0..len][0..copy_len].* = d0;
141142 dest[b..][0..copy_len].* = d1;
142143 dest[pen..][0..copy_len].* = d2;
143144 dest[last..][0..copy_len].* = d3;