mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
x86_64: cleanup comptime mutable memory change
This commit is contained in:
parent
eb723a4070
commit
7580879e8b
1 changed files with 2 additions and 3 deletions
|
|
@ -848,9 +848,8 @@ const mnemonic_to_encodings_map = init: {
|
|||
const final_storage = data_storage;
|
||||
var final_map: [mnemonic_count][]const Data = .{&.{}} ** mnemonic_count;
|
||||
storage_i = 0;
|
||||
for (&final_map, mnemonic_map) |*value, wip_value| {
|
||||
value.ptr = final_storage[storage_i..].ptr;
|
||||
value.len = wip_value.len;
|
||||
for (&final_map, mnemonic_map) |*final_value, value| {
|
||||
final_value.* = final_storage[storage_i..][0..value.len];
|
||||
storage_i += value.len;
|
||||
}
|
||||
break :init final_map;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue