mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +00:00
Correct #c_vararg behaviour on -llvm-api
This commit is contained in:
@@ -1331,6 +1331,9 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
|
|||||||
if (e->kind != Entity_Variable) {
|
if (e->kind != Entity_Variable) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (e->flags & EntityFlag_CVarArg) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
param_count += 1;
|
param_count += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1359,6 +1362,9 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
|
|||||||
if (e->kind != Entity_Variable) {
|
if (e->kind != Entity_Variable) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (e->flags & EntityFlag_CVarArg) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Type *e_type = reduce_tuple_to_single_type(e->type);
|
Type *e_type = reduce_tuple_to_single_type(e->type);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user