LLVM allows "void" type only for function results

This commit is contained in:
Dmitry Stogov 2023-12-05 11:06:47 +03:00
parent 81fab9a2cb
commit 86c87d1d1a

View File

@ -1092,8 +1092,6 @@ void ir_emit_llvm_func_decl(const char *name, uint32_t flags, ir_type ret_type,
}
} else if (flags & IR_VARARG_FUNC) {
fprintf(f, "...");
} else {
fprintf(f, "void");
}
fprintf(f, ")\n");
}