From 92b69215e63a3303a5e904ab332e2eec236e0ed2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 16 Aug 2021 23:30:18 -0700 Subject: update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 --- src/Cache.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Cache.zig') diff --git a/src/Cache.zig b/src/Cache.zig index 28401c3d18..8a3b801e71 100644 --- a/src/Cache.zig +++ b/src/Cache.zig @@ -210,7 +210,7 @@ pub const Manifest = struct { pub fn addFile(self: *Manifest, file_path: []const u8, max_file_size: ?usize) !usize { assert(self.manifest_file == null); - try self.files.ensureCapacity(self.cache.gpa, self.files.items.len + 1); + try self.files.ensureUnusedCapacity(self.cache.gpa, 1); const resolved_path = try fs.path.resolve(self.cache.gpa, &[_][]const u8{file_path}); const idx = self.files.items.len; -- cgit v1.2.3