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