| ... | @@ -14984,20 +14984,6 @@ static IrInstruction *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCallSrc *c | ... | @@ -14984,20 +14984,6 @@ static IrInstruction *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCallSrc *c |
| 14984 | } | 14984 | } |
| 14985 | return ira->codegen->invalid_instruction; | 14985 | return ira->codegen->invalid_instruction; |
| 14986 | } | 14986 | } |
| 14987 | if (fn_type_id->cc == CallingConventionAsync && !call_instruction->is_async) { | | |
| 14988 | ErrorMsg *msg = ir_add_error(ira, fn_ref, buf_sprintf("must use async keyword to call async function")); | | |
| 14989 | if (fn_proto_node) { | | |
| 14990 | add_error_note(ira->codegen, msg, fn_proto_node, buf_sprintf("declared here")); | | |
| 14991 | } | | |
| 14992 | return ira->codegen->invalid_instruction; | | |
| 14993 | } | | |
| 14994 | if (fn_type_id->cc != CallingConventionAsync && call_instruction->is_async) { | | |
| 14995 | ErrorMsg *msg = ir_add_error(ira, fn_ref, buf_sprintf("cannot use async keyword to call non-async function")); | | |
| 14996 | if (fn_proto_node) { | | |
| 14997 | add_error_note(ira->codegen, msg, fn_proto_node, buf_sprintf("declared here")); | | |
| 14998 | } | | |
| 14999 | return ira->codegen->invalid_instruction; | | |
| 15000 | } | | |
| 15001 | | 14987 | |
| 15002 | | 14988 | |
| 15003 | if (fn_type_id->is_var_args) { | 14989 | if (fn_type_id->is_var_args) { |