| ... | ... | @@ -4154,6 +4154,7 @@ static LLVMValueRef ir_render_handle(CodeGen *g, IrExecutable *executable, |
| 4154 | 4154 | executable->fn_entry->type_entry->data.fn.fn_type_id.cc == CallingConventionAsync; |
| 4155 | 4155 | |
| 4156 | 4156 | if (!is_async || !executable->coro_handle) { |
| 4157 | add_node_error(g, instruction->base.source_node, buf_sprintf("@handle() in non-async function")); |
| 4157 | 4158 | return LLVMConstNull(g->builtin_types.entry_promise->type_ref); |
| 4158 | 4159 | } |
| 4159 | 4160 | |
| ... | ... | @@ -6022,7 +6023,8 @@ static void do_code_gen(CodeGen *g) { |
| 6022 | 6023 | ir_render(g, fn_table_entry); |
| 6023 | 6024 | |
| 6024 | 6025 | } |
| 6025 | | assert(!g->errors.length); |
| 6026 | |
| 6027 | //assert(!g->errors.length); |
| 6026 | 6028 | |
| 6027 | 6029 | if (buf_len(&g->global_asm) != 0) { |
| 6028 | 6030 | LLVMSetModuleInlineAsm(g->module, buf_ptr(&g->global_asm)); |