| author | |
| committer | |
| log | 471f3c470fdeb00596ebd0d045a5b0dab737947d |
| tree | aa66b87683974baed36d7317768eb87adc6ed55f |
| parent | 775b0c1347cdc932626d199cb22928013ee05fea |
These errdefer where never executed, while this didn't bother the stage1
compiler, it caused an error in stage2.
The fix is just removing those errdefer which doesn't change any
behaviour because they were never executed in the first place.1 files changed, 0 insertions(+), 2 deletions(-)
lib/compiler_rt/emutls.zig-2| ... | ... | @@ -86,12 +86,10 @@ const ObjectArray = struct { |
| 86 | 86 | /// create a new ObjectArray with n slots. must call deinit() to deallocate. |
| 87 | 87 | pub fn init(n: usize) *ObjectArray { |
| 88 | 88 | var array = simple_allocator.alloc(ObjectArray); |
| 89 | errdefer simple_allocator.free(array); | |
| 90 | 89 | |
| 91 | 90 | array.* = ObjectArray{ |
| 92 | 91 | .slots = simple_allocator.allocSlice(?ObjectPointer, n), |
| 93 | 92 | }; |
| 94 | errdefer simple_allocator.free(array.slots); | |
| 95 | 93 | |
| 96 | 94 | for (array.slots) |*object| { |
| 97 | 95 | object.* = null; |