| ... | @@ -2329,11 +2329,8 @@ fn resolveSymbols(self: *MachO) !void { | ... | @@ -2329,11 +2329,8 @@ fn resolveSymbols(self: *MachO) !void { |
| 2329 | | 2329 | |
| 2330 | // Convert any tentative definition into a regular symbol and allocate | 2330 | // Convert any tentative definition into a regular symbol and allocate |
| 2331 | // text blocks for each tentative defintion. | 2331 | // text blocks for each tentative defintion. |
| 2332 | var tentatives_count: usize = 0; | 2332 | while (tentatives.popOrNull()) |entry| { |
| 2333 | const ntentatives = tentatives.count(); | 2333 | const sym = &self.globals.items[entry.key]; |
| 2334 | while (tentatives_count < ntentatives) : (tentatives_count += 1) { | | |
| 2335 | const index = tentatives.pop().key; | | |
| 2336 | const sym = &self.globals.items[index]; | | |
| 2337 | const match: MatchingSection = blk: { | 2334 | const match: MatchingSection = blk: { |
| 2338 | if (self.common_section_index == null) { | 2335 | if (self.common_section_index == null) { |
| 2339 | const data_seg = &self.load_commands.items[self.data_segment_cmd_index.?].Segment; | 2336 | const data_seg = &self.load_commands.items[self.data_segment_cmd_index.?].Segment; |