We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30e1c96 + 378e72b commit 7d8f41bCopy full SHA for 7d8f41b
src/llvm_backend_proc.cpp
@@ -546,6 +546,9 @@ gb_internal void lb_begin_procedure_body(lbProcedure *p) {
546
GB_ASSERT(p->type != nullptr);
547
548
lb_ensure_abi_function_type(p->module, p);
549
+ if (p->type->Proc.calling_convention == ProcCC_Odin) {
550
+ lb_push_context_onto_stack_from_implicit_parameter(p);
551
+ }
552
{
553
lbFunctionType *ft = p->abi_function_type;
554
@@ -743,9 +746,6 @@ gb_internal void lb_begin_procedure_body(lbProcedure *p) {
743
746
744
747
}
745
748
- if (p->type->Proc.calling_convention == ProcCC_Odin) {
- lb_push_context_onto_stack_from_implicit_parameter(p);
- }
749
750
lb_set_debug_position_to_procedure_begin(p);
751
if (p->debug_info != nullptr) {
0 commit comments