authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-11 22:09:53-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-11 22:11:22-05:00
logbf8870a60bb35062b2b25867a0f9a95f6f5397ce
treef41b3b32de3644dd3f15eaa94be23e330521fea3
parent5502160bd23f14b91ac2bd3726a93bdd0b40cc53
signaturelock-open Commit is signed but in an unrecognized format.

fix unresolved type making it to codegen

found this trying to build oxid

1 files changed, 4 insertions(+), 0 deletions(-)

src/codegen.cpp+4
......@@ -1699,6 +1699,10 @@ static void gen_var_debug_decl(CodeGen *g, ZigVar *var) {
16991699}
17001700
17011701static LLVMValueRef ir_llvm_value(CodeGen *g, IrInstruction *instruction) {
1702 Error err;
1703 if ((err = type_resolve(g, instruction->value.type, ResolveStatusZeroBitsKnown))) {
1704 codegen_report_errors_and_exit(g);
1705 }
17021706 if (!type_has_bits(instruction->value.type))
17031707 return nullptr;
17041708 if (!instruction->llvm_value) {