aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-19 14:31:32 +0100
committergingerBill <bill@gingerbill.org>2023-07-19 14:31:32 +0100
commit7f97274ecc0cfe445988f87c8806d08618f6671a (patch)
tree04cb682ada5ee68f858db5490fe4459884ced3bb /src/tilde_expr.cpp
parentb2edab193f26355020c5c13af432145712d8cf0f (diff)
Wrap Tilde's goto pseudo-instruction
Diffstat (limited to 'src/tilde_expr.cpp')
-rw-r--r--src/tilde_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tilde_expr.cpp b/src/tilde_expr.cpp
index 526bc4de3..e584d67e3 100644
--- a/src/tilde_expr.cpp
+++ b/src/tilde_expr.cpp
@@ -2060,13 +2060,13 @@ gb_internal cgValue cg_build_expr_internal(cgProcedure *p, Ast *expr) {
incoming_values [0] = cg_emit_conv(p, cg_build_expr(p, te->x), type);
incoming_regions[0] = tb_inst_get_control(p->func);
- tb_inst_goto(p->func, done);
+ cg_emit_goto(p, done);
tb_inst_set_control(p->func, else_);
incoming_values [1] = cg_emit_conv(p, cg_build_expr(p, te->y), type);
incoming_regions[1] = tb_inst_get_control(p->func);
- tb_inst_goto(p->func, done);
+ cg_emit_goto(p, done);
tb_inst_set_control(p->func, done);
GB_ASSERT(incoming_values[0].kind == cgValue_Value ||