aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-28 17:23:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-28 17:23:02 -0700
commit1c93cf52d8b8acab469efe5d4457ed43d76bc6e5 (patch)
tree7f85f232fe39aeb3ab43d13dd29ecd70f9921d55 /src/codegen/spirv.zig
parentc59ee3157f5a7fb5c6110422ea8215601285ea28 (diff)
downloadzig-1c93cf52d8b8acab469efe5d4457ed43d76bc6e5.tar.gz
zig-1c93cf52d8b8acab469efe5d4457ed43d76bc6e5.zip
C backend: fix crash when number of Decls passes a threshold
The ensureUnusedCapacity did not reserve a big enough number. I changed it to no longer guess the capacity because I saw that the number of possible items was not determinable ahead of time and this can therefore avoid allocating more memory than necessary.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions