aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-26 13:14:49 +0100
committergingerBill <bill@gingerbill.org>2023-08-26 13:14:49 +0100
commit0b0230adcee03247b7ac7cb9113ceff1e7ef94be (patch)
treefee40c00d092259c4778a8679dbade1923338fa1 /src/tilde_stmt.cpp
parent8f086a695761e84e4d25da8aebe68102810ef7fb (diff)
Update Tilde
Diffstat (limited to 'src/tilde_stmt.cpp')
-rw-r--r--src/tilde_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tilde_stmt.cpp b/src/tilde_stmt.cpp
index e34b0ec4c..7dca2b671 100644
--- a/src/tilde_stmt.cpp
+++ b/src/tilde_stmt.cpp
@@ -15,7 +15,7 @@ gb_internal TB_Node *cg_control_region(cgProcedure *p, char const *name) {
n = -1 + gb_snprintf(new_name, n+11, "%.*s_%u", cast(int)n, name, p->control_regions.count);
TB_Node *region = tb_inst_region(p->func);
- tb_inst_set_region_name(p->module->mod, region, n, new_name);
+ tb_inst_set_region_name(p->func, region, n, new_name);
GB_ASSERT(p->scope_index >= 0);
array_add(&p->control_regions, cgControlRegion{region, p->scope_index});