diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-25 16:10:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-08-25 16:15:48 -0700 |
| commit | d2ad8afff4c404f6e1a566cce3fa6e7f768503e5 (patch) | |
| tree | 28ca64fb5e60cf15fdff8a4c6be921c83b7ce8b1 /lib/std/array_list.zig | |
| parent | 9d231c4991ec1e33c3f4a96e5941848705ef5050 (diff) | |
| download | zig-d2ad8afff4c404f6e1a566cce3fa6e7f768503e5.tar.gz zig-d2ad8afff4c404f6e1a566cce3fa6e7f768503e5.zip | |
LLVM: fix missing alignment on wrapping instructions
Previously, when lowering AIR instructions `wrap_errunion_payload`,
`wrap_errunion_err`, and `wrap_optional`, the LLVM backend would create
an alloca instruction to store the result, but did not set the alignment
on it. This caused UB which went undetected for a long time until we
started enabling the stack protector.
Closes #12594
Unblocks #12508
Inspires #12634
Tests passed locally:
* test-behavior
* test-cases
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions
