diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-10-16 12:15:46 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-16 18:39:48 -0400 |
| commit | f78380b936de862476ea6b3cc3e8d4ba4562c7fa (patch) | |
| tree | 3c4280298a9005d320b8a2dcddb157f3e261cf1d /src/main.zig | |
| parent | 2a62d4b20be9b99f53367e74434e1971ced78848 (diff) | |
| download | zig-f78380b936de862476ea6b3cc3e8d4ba4562c7fa.tar.gz zig-f78380b936de862476ea6b3cc3e8d4ba4562c7fa.zip | |
stage1: Don't ask LLVM to emit misaligned memcpy
Pay close attention to the RHS type alignment when rendering an
assignment op as it may differ from the LHS pointer one.
This problem was noticed when debugging a CI failure in #6648: due to
sheer luck the misalignment caused a segfault on macos that was also
reproduced locally.
I tried to write a small test case but it turned out to be a daunting
task as I couldn't manage to trigger the problem consistently (and stop
the optimizer from simplifying everything). Patches welcome.
Diffstat (limited to 'src/main.zig')
0 files changed, 0 insertions, 0 deletions
