diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-02 00:00:42 +0200 |
|---|---|---|
| committer | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-02 16:12:08 +0200 |
| commit | 7a28c644aa8eb3d27dee113338af8278f8f6334f (patch) | |
| tree | de1a483b9d9fa9224a50c94522da6bb3308b016c /tools | |
| parent | d3ab0eb28de5a5a94fd4ef988dd4c4b0e3ddf927 (diff) | |
| download | zig-7a28c644aa8eb3d27dee113338af8278f8f6334f.tar.gz zig-7a28c644aa8eb3d27dee113338af8278f8f6334f.zip | |
new ArrayList API: fix everything else
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/merge_anal_dumps.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/merge_anal_dumps.zig b/tools/merge_anal_dumps.zig index 3399c15fd7..e0b3a036f1 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); |
