| author | |
| committer | |
| log | 8b734380f9e900826b1a9cb9804887035f2fe085 |
| tree | 4dd1486fb75337de20dd3d54e2a481d13076e1cc |
| parent | c8ded2f9c940be2d59f5e9dc7d66374b67afba63 |
Without this they could get incorrectly garbage collected.1 files changed, 1 insertions(+), 0 deletions(-)
src/codegen/llvm.zig+1| ... | ... | @@ -1383,6 +1383,7 @@ pub const DeclGen = struct { |
| 1383 | 1383 | ptr_val: Value, |
| 1384 | 1384 | decl: *Module.Decl, |
| 1385 | 1385 | ) Error!ParentPtr { |
| 1386 | decl.alive = true; | |
| 1386 | 1387 | var ptr_ty_payload: Type.Payload.ElemType = .{ |
| 1387 | 1388 | .base = .{ .tag = .single_mut_pointer }, |
| 1388 | 1389 | .data = decl.ty, |