diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-03-10 02:50:53 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-03-10 02:50:53 -0500 |
| commit | c91dbdb27c2c6b6ab4f26345382128e86c5456f3 (patch) | |
| tree | 568736f47025c33704defc325cfc55528e1e7910 /src/ir.cpp | |
| parent | cd31f875a68fba0519f20c561b11b5dfb9524a8b (diff) | |
| download | zig-c91dbdb27c2c6b6ab4f26345382128e86c5456f3.tar.gz zig-c91dbdb27c2c6b6ab4f26345382128e86c5456f3.zip | |
fix not allocating enough memory for passing args
fixes a bug introduced in c62db5721c1bf
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 425ee62052..677bef308c 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8199,7 +8199,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal assert(fn_entry); // Count the arguments of the function type id we are creating - size_t new_fn_arg_count = 0; + size_t new_fn_arg_count = first_arg_1_or_0; for (size_t call_i = 0; call_i < call_instruction->arg_count; call_i += 1) { IrInstruction *arg = call_instruction->args[call_i]->other; if (type_is_invalid(arg->value.type)) |
