diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-13 12:02:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-13 12:02:55 -0700 |
| commit | 2a701a92c403dda47a61848a38998b474442d805 (patch) | |
| tree | 52f69e339df727aae1a29a6009d3a4c0860e181c /test/behavior/basic.zig | |
| parent | fc302f00a9de5de0490f4a66720e75946763c695 (diff) | |
| download | zig-2a701a92c403dda47a61848a38998b474442d805.tar.gz zig-2a701a92c403dda47a61848a38998b474442d805.zip | |
stage2: LLVM backend: fix crash adding alloca
The logic for `buildAlloca` had a null deref when the latest alloca was
the last instruction in the entry block. Now the logic is simplified to
always insert alloca instructions first before all other instructions.
There is no longer a need to track `entry_block` or `latest_alloca_inst`;
these fields are deleted frem `FuncGen`.
Diffstat (limited to 'test/behavior/basic.zig')
0 files changed, 0 insertions, 0 deletions
