zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2cf27c571880a607401dca181f8103e855d0c46d (tree)
parent 653814f76ba5d678ebad91f140417cd5829c6aad
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Sat,  4 Mar 2023 02:11:04 -0500

llvm: fix incorrectly annotated DIType

Closes #14715
Closes #14783

Diffstat:
Msrc/codegen/llvm.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig @@ -1773,7 +1773,7 @@ pub const Object = struct { if (ty.optionalReprIsPayload()) { const ptr_di_ty = try o.lowerDebugType(child_ty, resolve); // The recursive call to `lowerDebugType` means we can't use `gop` anymore. - try o.di_type_map.putContext(gpa, ty, AnnotatedDITypePtr.initFull(ptr_di_ty), .{ .mod = o.module }); + try o.di_type_map.putContext(gpa, ty, AnnotatedDITypePtr.init(ptr_di_ty, resolve), .{ .mod = o.module }); return ptr_di_ty; }