compiler: use @memcpy instead of std.mem.copy

This commit is contained in:
Andrew Kelley
2023-04-27 15:40:00 -07:00
parent 125221cce9
commit 42973d73e6
15 changed files with 82 additions and 61 deletions

View File

@@ -552,7 +552,7 @@ pub fn generateSymbol(
.ty = field_ty,
.val = field_val,
}, &tmp_list, debug_output, reloc_info)) {
.ok => mem.copy(u8, code.items[current_pos..], tmp_list.items),
.ok => @memcpy(code.items[current_pos..][0..tmp_list.items.len], tmp_list.items),
.fail => |em| return Result{ .fail = em },
}
} else {