| ... | ... | @@ -28885,7 +28885,7 @@ fn beginComptimePtrMutation( |
| 28885 | 28885 | // If we wanted to avoid this, there would need to be special detection |
| 28886 | 28886 | // elsewhere to identify when writing a value to an array element that is stored |
| 28887 | 28887 | // using the `bytes` tag, and handle it without making a call to this function. |
| 28888 | | const arena = sema.arena; |
| 28888 | const arena = mod.tmp_hack_arena.allocator(); |
| 28889 | 28889 | |
| 28890 | 28890 | const bytes = val_ptr.castTag(.bytes).?.data; |
| 28891 | 28891 | const dest_len = parent.ty.arrayLenIncludingSentinel(mod); |
| ... | ... | @@ -28917,7 +28917,7 @@ fn beginComptimePtrMutation( |
| 28917 | 28917 | // need to be special detection elsewhere to identify when writing a value to an |
| 28918 | 28918 | // array element that is stored using the `repeated` tag, and handle it |
| 28919 | 28919 | // without making a call to this function. |
| 28920 | | const arena = sema.arena; |
| 28920 | const arena = mod.tmp_hack_arena.allocator(); |
| 28921 | 28921 | |
| 28922 | 28922 | const repeated_val = try val_ptr.castTag(.repeated).?.data.intern(parent.ty.childType(mod), mod); |
| 28923 | 28923 | const array_len_including_sentinel = |
| ... | ... | @@ -28955,7 +28955,7 @@ fn beginComptimePtrMutation( |
| 28955 | 28955 | // An array has been initialized to undefined at comptime and now we |
| 28956 | 28956 | // are for the first time setting an element. We must change the representation |
| 28957 | 28957 | // of the array from `undef` to `array`. |
| 28958 | | const arena = sema.arena; |
| 28958 | const arena = mod.tmp_hack_arena.allocator(); |
| 28959 | 28959 | |
| 28960 | 28960 | const array_len_including_sentinel = |
| 28961 | 28961 | try sema.usizeCast(block, src, parent.ty.arrayLenIncludingSentinel(mod)); |
| ... | ... | @@ -29053,7 +29053,7 @@ fn beginComptimePtrMutation( |
| 29053 | 29053 | parent.mut_decl, |
| 29054 | 29054 | ), |
| 29055 | 29055 | .repeated => { |
| 29056 | | const arena = sema.arena; |
| 29056 | const arena = mod.tmp_hack_arena.allocator(); |
| 29057 | 29057 | |
| 29058 | 29058 | const elems = try arena.alloc(Value, parent.ty.structFieldCount(mod)); |
| 29059 | 29059 | @memset(elems, val_ptr.castTag(.repeated).?.data); |
| ... | ... | @@ -29116,7 +29116,7 @@ fn beginComptimePtrMutation( |
| 29116 | 29116 | // A struct or union has been initialized to undefined at comptime and now we |
| 29117 | 29117 | // are for the first time setting a field. We must change the representation |
| 29118 | 29118 | // of the struct/union from `undef` to `struct`/`union`. |
| 29119 | | const arena = sema.arena; |
| 29119 | const arena = mod.tmp_hack_arena.allocator(); |
| 29120 | 29120 | |
| 29121 | 29121 | switch (parent.ty.zigTypeTag(mod)) { |
| 29122 | 29122 | .Struct => { |