mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
LLVM allows "void" type only for function results
This commit is contained in:
parent
81fab9a2cb
commit
86c87d1d1a
@ -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) {
|
} else if (flags & IR_VARARG_FUNC) {
|
||||||
fprintf(f, "...");
|
fprintf(f, "...");
|
||||||
} else {
|
|
||||||
fprintf(f, "void");
|
|
||||||
}
|
}
|
||||||
fprintf(f, ")\n");
|
fprintf(f, ")\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user