From 42973d73e6b045f242cc67015fba023ff46e9929 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 27 Apr 2023 15:40:00 -0700 Subject: compiler: use `@memcpy` instead of `std.mem.copy` --- src/type.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/type.zig') diff --git a/src/type.zig b/src/type.zig index c7b2844970..816a1ee2e0 100644 --- a/src/type.zig +++ b/src/type.zig @@ -4767,7 +4767,7 @@ pub const Type = extern union { .fn_ccc_void_no_args => return, .function => { const payload = self.castTag(.function).?.data; - std.mem.copy(Type, types, payload.param_types); + @memcpy(types[0..payload.param_types.len], payload.param_types); }, else => unreachable, -- cgit v1.2.3