mirror of
https://github.com/ziglang/zig.git
synced 2026-01-27 09:45:27 +00:00
fix another crash
This commit is contained in:
parent
2b1695b1b0
commit
7e303fa28f
@ -15092,6 +15092,9 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe
|
||||
if (is_comptime)
|
||||
return nullptr;
|
||||
}
|
||||
if ((err = type_resolve(ira->codegen, ira->explicit_return_type, ResolveStatusZeroBitsKnown))) {
|
||||
return ira->codegen->invalid_instruction;
|
||||
}
|
||||
if (!type_has_bits(ira->explicit_return_type) || !handle_is_ptr(ira->explicit_return_type))
|
||||
return nullptr;
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ test "std" {
|
||||
_ = @import("heap.zig");
|
||||
_ = @import("io.zig");
|
||||
_ = @import("json.zig");
|
||||
//_ = @import("lazy_init.zig");
|
||||
_ = @import("lazy_init.zig");
|
||||
_ = @import("macho.zig");
|
||||
_ = @import("math.zig");
|
||||
_ = @import("mem.zig");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user