Correct #c_vararg behaviour on -llvm-api

This commit is contained in:
gingerBill
2021-03-25 20:23:43 +00:00
parent 7c951cbf0a
commit 0007ac63ed

View File

@@ -1331,6 +1331,9 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
if (e->kind != Entity_Variable) {
continue;
}
if (e->flags & EntityFlag_CVarArg) {
continue;
}
param_count += 1;
}
}
@@ -1359,6 +1362,9 @@ LLVMTypeRef lb_type_internal(lbModule *m, Type *type) {
if (e->kind != Entity_Variable) {
continue;
}
if (e->flags & EntityFlag_CVarArg) {
continue;
}
Type *e_type = reduce_tuple_to_single_type(e->type);