diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-24 22:27:40 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-24 22:44:33 -0700 |
| commit | b560f46c871f234a8b2f762c03984eef963f360a (patch) | |
| tree | 4c82363776185796842c5b4a505444381a77e67e /src/Module.zig | |
| parent | a130eac7857512db50320fb1c64079b0d696885d (diff) | |
| download | zig-b560f46c871f234a8b2f762c03984eef963f360a.tar.gz zig-b560f46c871f234a8b2f762c03984eef963f360a.zip | |
stage2: fix unwrap function call with optional pointer return value
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Module.zig b/src/Module.zig index 153c2199b3..78c05c1183 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -3464,11 +3464,16 @@ fn semaDecl(mod: *Module, decl: *Decl) !bool { queue_linker_work = true; } }, - .array, .@"struct", .@"union" => { + + .generic_poison => unreachable, + .unreachable_value => unreachable, + + .function => {}, + + else => { log.debug("send global const to linker: {*} ({s})", .{ decl, decl.name }); queue_linker_work = true; }, - else => {}, } decl.ty = try decl_tv.ty.copy(&decl_arena.allocator); |
