0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
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
History 2022-08-25 16:15:48 -07:00
..
behavior LLVM: fix missing alignment on wrapping instructions 2022-08-25 16:15:48 -07:00
c_abi C ABI tests no longer apply to only stage1 2022-07-26 14:51:45 -07:00
cases Sema: ignore comptime params in partial func type check 2022-08-25 16:29:23 +03:00
link test/link: add wasm linker-test for archives 2022-08-20 15:46:39 +02:00
src std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
stage2 Sema: allow empty enums and unions 2022-08-17 23:03:04 +03:00
standalone AstGen: disable null bytes and empty stings in some places 2022-07-26 12:14:59 +03:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig stage2: explicitly tagged enums no longer have one possible value 2022-08-24 22:20:31 -07:00
cases.zig test: migrate stage1 compile error tests to updated test manifest 2022-04-28 18:35:01 +02:00
cli.zig init-exe template: align cli tests to new template 2022-08-05 00:42:53 +02:00
compare_output.zig std: compile error on invalid testing allocator usage 2022-07-24 11:57:00 +03:00
compile_errors.zig Sema: check for astgen failures in semaStructFields 2022-08-22 11:16:36 +03:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
link.zig test/link: add wasm linker-test for archives 2022-08-20 15:46:39 +02:00
run_translated_c.zig run_translated_c: disable failing test on Windows 2022-08-25 17:01:49 +02:00
stack_traces.zig test-stack-traces: restore test coverage 2022-08-24 12:57:31 -07:00
standalone.zig disable failing standalone test: issue_11595 2022-08-11 17:53:12 -07:00
tests.zig test harness: don't skip tests 2022-08-22 19:50:32 -04:00
translate_c.zig fix: fix off-by-one for leading zeroes 2022-08-20 01:45:34 +03:00