| ... | @@ -1443,7 +1443,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1443,7 +1443,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1443 | | 1443 | |
| 1444 | comp.* = .{ | 1444 | comp.* = .{ |
| 1445 | .gpa = gpa, | 1445 | .gpa = gpa, |
| 1446 | .arena = arena_allocator, | 1446 | .arena = undefined, // populated after we are finished with `arena` |
| 1447 | .module = opt_zcu, | 1447 | .module = opt_zcu, |
| 1448 | .cache_use = undefined, // populated below | 1448 | .cache_use = undefined, // populated below |
| 1449 | .bin_file = null, // populated below | 1449 | .bin_file = null, // populated below |
| ... | @@ -1667,6 +1667,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1667,6 +1667,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1667 | }, | 1667 | }, |
| 1668 | } | 1668 | } |
| 1669 | | 1669 | |
| | 1670 | comp.arena = arena_allocator; |
| 1670 | break :comp comp; | 1671 | break :comp comp; |
| 1671 | }; | 1672 | }; |
| 1672 | errdefer comp.destroy(); | 1673 | errdefer comp.destroy(); |