diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-01-21 16:09:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-21 16:09:50 +0000 |
| commit | c71c86f563cb79601b042571a01e6ea70cc25b2d (patch) | |
| tree | 78c60031eeca7e26e756181814451f6cd92285d8 /src/ir.cpp | |
| parent | 773be83cadf58abdd6e78a0741aa6dea64f7ddf3 (diff) | |
| parent | 24db60eb4b5ca48d57e1fb276ed640aea699d19a (diff) | |
Merge pull request #821 from corruptmemory/corruptmemory/fix-for-c_vararg
Fix for `c_vararg` issue
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 90cce3699..62eee2f9f 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -3469,6 +3469,12 @@ irValue *ir_emit_call(irProcedure *p, irValue *value, Array<irValue *> const &ar } } + if (is_c_vararg) { + for (isize i = param_count; i < args.count; i++) { + array_add(&processed_args, args[i]); + } + } + if (inlining == ProcInlining_none) { inlining = p->inlining; } |