summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-20 23:06:03 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-20 23:06:03 -0800
commit6361a241f462769284053e07d51cd0638d3e94af (patch)
tree9c69b768bdccb941da1384e53745f87e4c94afa5 /mi
parent631e14604ba34ad97514cf302de75c3c3102d316 (diff)
downloadmc-6361a241f462769284053e07d51cd0638d3e94af.tar.gz
Add a distinction between label values and names.
This allows us to have labels work across scopes in assembly source.
Diffstat (limited to 'mi')
-rw-r--r--mi/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/cfg.c b/mi/cfg.c
index 12ecc75..349dfb9 100644
--- a/mi/cfg.c
+++ b/mi/cfg.c
@@ -214,7 +214,7 @@ Cfg *mkcfg(Node *fn, Node **nl, size_t nn)
}
}
post = mkbb(cfg);
- bprintf(buf, sizeof buf, ".R%d", nextret++);
+ bprintf(buf, sizeof buf, ".Lret.%d", nextret++);
label(cfg, mklbl(fn->loc, buf), post);
cfg->start = pre;