diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-25 20:23:43 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-25 20:23:43 +0000 |
| commit | 0007ac63ed941feb8eb61994ddc16cc00a5eaada (patch) | |
| tree | 4203a83080e4881b16cb727d9aae7a89f414c2fc /src/llvm_backend.cpp | |
| parent | 7c951cbf0a769c39d0f96ee7b627d7cf1fd83d49 (diff) | |
Correct #c_vararg behaviour on -llvm-api
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 548b629d1..62bee0c27 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -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); |