summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/6/isel.c b/6/isel.c
index 81fa419..6a82941 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -87,12 +87,12 @@ static Loc *loc(Isel *s, Node *n)
if (hthas(s->stkoff, n)) {
stkoff = (ssize_t)htget(s->stkoff, n);
l = locmem(-stkoff, locphysreg(Rrbp), NULL, mode(n));
- } else if (hthas(s->_globls, n)) {
+ } else if (hthas(s->globls, n)) {
if (tybase(exprtype(n))->type == Tyfunc)
rip = NULL;
else
rip = locphysreg(Rrip);
- l = locmeml(htget(s->_globls, n), rip, NULL, mode(n));
+ l = locmeml(htget(s->globls, n), rip, NULL, mode(n));
} else {
if (!hthas(s->reglocs, n))
htput(s->reglocs, n, locreg(mode(n)));
@@ -930,7 +930,7 @@ void genasm(FILE *fd, Func *fn, Htab *globls)
size_t i, j;
char buf[128];
- is.reglocs = mkht(dclhash, dcleq);
+ is.reglocs = mkht(varhash, vareq);
is.stkoff = fn->stkoff;
is.globls = globls;
is.ret = fn->ret;