mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 00:24:05 +00:00
Push context onto stack before evaluating procedure parameters
Fixes #4711
This commit is contained in:
@@ -546,6 +546,9 @@ gb_internal void lb_begin_procedure_body(lbProcedure *p) {
|
||||
GB_ASSERT(p->type != nullptr);
|
||||
|
||||
lb_ensure_abi_function_type(p->module, p);
|
||||
if (p->type->Proc.calling_convention == ProcCC_Odin) {
|
||||
lb_push_context_onto_stack_from_implicit_parameter(p);
|
||||
}
|
||||
{
|
||||
lbFunctionType *ft = p->abi_function_type;
|
||||
|
||||
@@ -743,9 +746,6 @@ gb_internal void lb_begin_procedure_body(lbProcedure *p) {
|
||||
|
||||
}
|
||||
}
|
||||
if (p->type->Proc.calling_convention == ProcCC_Odin) {
|
||||
lb_push_context_onto_stack_from_implicit_parameter(p);
|
||||
}
|
||||
|
||||
lb_set_debug_position_to_procedure_begin(p);
|
||||
if (p->debug_info != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user