aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2022-03-17 22:29:39 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-03-17 18:00:48 -0700
commitd7d2ccb7af7349617fa76eef3bdead7c259654a5 (patch)
treed5585a7215f338a5c22cbbbbe4199a0b1ea58543 /src/codegen/llvm.zig
parentadfcc8851b6bb47b085cfe2526f0797b1f414996 (diff)
downloadzig-d7d2ccb7af7349617fa76eef3bdead7c259654a5.tar.gz
zig-d7d2ccb7af7349617fa76eef3bdead7c259654a5.zip
Avoid index out of bounds for one-valued types in zirValidateArrayInit
Previously, the code assumed that `ptr_elem_ptr` was always followed by a `store`, but this is not true for types with one value (such as `u0`).
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions