aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-03 22:31:15 -0400
committerGitHub <noreply@github.com>2020-04-03 22:31:15 -0400
commite89c42655cf9851cdf02065bc75cda0e27884966 (patch)
treeb25e26e53ceda1ac03e65de5d483491ee46e7c0e /tools
parent1568470c44eafb59425c070ea9884b78cc2516b2 (diff)
parent7a28c644aa8eb3d27dee113338af8278f8f6334f (diff)
downloadzig-e89c42655cf9851cdf02065bc75cda0e27884966.tar.gz
zig-e89c42655cf9851cdf02065bc75cda0e27884966.zip
Merge pull request #4868 from xackus/new-arraylist-api
new ArrayList API
Diffstat (limited to 'tools')
-rw-r--r--tools/merge_anal_dumps.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/merge_anal_dumps.zig b/tools/merge_anal_dumps.zig
index 10c401ec38..3cd23f6246 100644
--- a/tools/merge_anal_dumps.zig
+++ b/tools/merge_anal_dumps.zig
@@ -194,7 +194,7 @@ const Dump = struct {
for (other_files) |other_file, i| {
const gop = try self.file_map.getOrPut(other_file.String);
if (!gop.found_existing) {
- gop.kv.value = self.file_list.len;
+ gop.kv.value = self.file_list.items.len;
try self.file_list.append(other_file.String);
}
try other_file_to_mine.putNoClobber(i, gop.kv.value);
@@ -213,7 +213,7 @@ const Dump = struct {
};
const gop = try self.node_map.getOrPut(other_node);
if (!gop.found_existing) {
- gop.kv.value = self.node_list.len;
+ gop.kv.value = self.node_list.items.len;
try self.node_list.append(other_node);
}
try other_ast_node_to_mine.putNoClobber(i, gop.kv.value);
@@ -243,7 +243,7 @@ const Dump = struct {
};
const gop = try self.error_map.getOrPut(other_error);
if (!gop.found_existing) {
- gop.kv.value = self.error_list.len;
+ gop.kv.value = self.error_list.items.len;
try self.error_list.append(other_error);
}
try other_error_to_mine.putNoClobber(i, gop.kv.value);
@@ -304,7 +304,7 @@ const Dump = struct {
) !void {
const gop = try self.type_map.getOrPut(other_type);
if (!gop.found_existing) {
- gop.kv.value = self.type_list.len;
+ gop.kv.value = self.type_list.items.len;
try self.type_list.append(other_type);
}
try other_types_to_mine.putNoClobber(other_type_index, gop.kv.value);