aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-13 12:02:55 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-13 12:02:55 -0700
commit2a701a92c403dda47a61848a38998b474442d805 (patch)
tree52f69e339df727aae1a29a6009d3a4c0860e181c /src/Module.zig
parentfc302f00a9de5de0490f4a66720e75946763c695 (diff)
downloadzig-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 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions