| ... | @@ -3461,8 +3461,7 @@ pub const Global = struct { | ... | @@ -3461,8 +3461,7 @@ pub const Global = struct { |
| 3461 | const old_name = self.name(builder); | 3461 | const old_name = self.name(builder); |
| 3462 | if (new_name == old_name) return; | 3462 | if (new_name == old_name) return; |
| 3463 | const index = @backingInt(self.unwrap(builder)); | 3463 | const index = @backingInt(self.unwrap(builder)); |
| 3464 | _ = builder.addGlobalAssumeCapacity(new_name, builder.globals.values()[index]); | 3464 | builder.globals.setKey(index, new_name); |
| 3465 | builder.globals.swapRemoveAt(index); | | |
| 3466 | if (!old_name.isAnon()) return; | 3465 | if (!old_name.isAnon()) return; |
| 3467 | builder.next_unnamed_global = @fromBackingInt(@backingInt(builder.next_unnamed_global) - 1); | 3466 | builder.next_unnamed_global = @fromBackingInt(@backingInt(builder.next_unnamed_global) - 1); |
| 3468 | if (builder.next_unnamed_global == old_name) return; | 3467 | if (builder.next_unnamed_global == old_name) return; |