diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-28 17:23:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-28 17:23:02 -0700 |
| commit | 1c93cf52d8b8acab469efe5d4457ed43d76bc6e5 (patch) | |
| tree | 7f85f232fe39aeb3ab43d13dd29ecd70f9921d55 /src/codegen/c.zig | |
| parent | c59ee3157f5a7fb5c6110422ea8215601285ea28 (diff) | |
| download | zig-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/c.zig')
0 files changed, 0 insertions, 0 deletions
