zig/test/behavior
Andrew Kelley d2ad8afff4 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
2022-08-25 16:15:48 -07:00
..
2022-02-28 23:20:05 +01:00
2022-07-14 18:11:46 -07:00
2021-10-28 17:33:05 -07:00
2022-03-18 15:02:52 -07:00
2022-02-13 14:42:20 +02:00
2022-06-08 15:51:48 -07:00
2022-07-14 18:11:46 -07:00
2022-01-07 00:06:06 -05:00
2022-02-22 21:57:42 +01:00
2022-03-05 11:31:51 +01:00
2022-08-10 16:43:47 -07:00
2022-03-18 00:12:22 -07:00
2022-03-18 15:02:52 -07:00