mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Raw vaargs with optional return not lowered correctly #2819
This commit is contained in:
@@ -5817,7 +5817,7 @@ INLINE void llvm_emit_call_invocation(GenContext *c, BEValue *result_value,
|
||||
for (unsigned i = 0; i < vararg_count; i++)
|
||||
{
|
||||
ABIArgInfo *info = abi_varargs[index];
|
||||
BEValue value_copy = values[i + param_count];
|
||||
BEValue value_copy = values[i + param_count - start];
|
||||
llvm_emit_parameter(c, arg_values, &arg_count, info, &value_copy);
|
||||
index++;
|
||||
}
|
||||
@@ -5828,7 +5828,7 @@ INLINE void llvm_emit_call_invocation(GenContext *c, BEValue *result_value,
|
||||
for (unsigned i = 0; i < vararg_count; i++)
|
||||
{
|
||||
REMINDER("Varargs should be expanded correctly");
|
||||
arg_values[arg_count++] = llvm_load_value_store(c, &values[i + param_count]);
|
||||
arg_values[arg_count++] = llvm_load_value_store(c, &values[i + param_count - start]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user