diff options
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 2b4ef94a8f..de9018be6e 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -29708,6 +29708,12 @@ fn resolveLazyValue(sema: *Sema, val: Value) CompileError!void { const field_ptr = val.castTag(.comptime_field_ptr).?.data; return sema.resolveLazyValue(field_ptr.field_val); }, + .eu_payload, + .opt_payload, + => { + const sub_val = val.cast(Value.Payload.SubValue).?.data; + return sema.resolveLazyValue(sub_val); + }, .@"union" => { const union_val = val.castTag(.@"union").?.data; return sema.resolveLazyValue(union_val.val); @@ -29747,7 +29753,7 @@ pub fn resolveTypeLayout(sema: *Sema, ty: Type) CompileError!void { .Fn => { const info = ty.fnInfo(); if (info.is_generic) { - // Resolving of generic function types is defeerred to when + // Resolving of generic function types is deferred to when // the function is instantiated. return; } @@ -30201,7 +30207,7 @@ pub fn resolveTypeFully(sema: *Sema, ty: Type) CompileError!void { .Fn => { const info = ty.fnInfo(); if (info.is_generic) { - // Resolving of generic function types is defeerred to when + // Resolving of generic function types is deferred to when // the function is instantiated. return; } |
