aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-03-04 02:11:04 -0500
committerAndrew Kelley <andrew@ziglang.org>2023-03-04 13:52:47 -0700
commit2cf27c571880a607401dca181f8103e855d0c46d (patch)
tree15f4cb1cd62892ea5fac2a0b58a51cb0ca992e4a /src
parent653814f76ba5d678ebad91f140417cd5829c6aad (diff)
downloadzig-2cf27c571880a607401dca181f8103e855d0c46d.tar.gz
zig-2cf27c571880a607401dca181f8103e855d0c46d.zip
llvm: fix incorrectly annotated DIType
Closes #14715 Closes #14783
Diffstat (limited to 'src')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 6f240b88f5..937c1cf120 100644
--- 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;
}