mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #c_vararg for LLVM C API
This commit is contained in:
@@ -1328,6 +1328,10 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
|
|||||||
if (param == nullptr) {
|
if (param == nullptr) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (type->Proc.params->Tuple.variables[i]->flags & EntityFlag_CVarArg) {
|
||||||
|
GB_ASSERT(i+1 == type->Proc.abi_compat_params.count);
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (is_type_tuple(param)) {
|
if (is_type_tuple(param)) {
|
||||||
param = base_type(param);
|
param = base_type(param);
|
||||||
for_array(j, param->Tuple.variables) {
|
for_array(j, param->Tuple.variables) {
|
||||||
@@ -12291,6 +12295,10 @@ void lb_generate_code(lbGenerator *gen) {
|
|||||||
m->curr_procedure = nullptr;
|
m->curr_procedure = nullptr;
|
||||||
}
|
}
|
||||||
lb_end_procedure(p);
|
lb_end_procedure(p);
|
||||||
|
if (p->name == "igTextColored") {
|
||||||
|
LLVMDumpValue(p->value);
|
||||||
|
gb_printf_err("\n");
|
||||||
|
}
|
||||||
|
|
||||||
// Add Flags
|
// Add Flags
|
||||||
if (p->body != nullptr) {
|
if (p->body != nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user