diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-02-13 14:44:00 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-02-20 21:54:11 -0800 |
commit | 7096d0e99d9deb053a7763f49b2b1b7b1df20a6a (patch) | |
tree | 049ac0cb30b67389d8a1c9f7e123d5c8bdbd6dc0 /6/isel.c | |
parent | eba5edcf79813be921d8116ece30c10ca65c9fb3 (diff) | |
download | mc-7096d0e99d9deb053a7763f49b2b1b7b1df20a6a.tar.gz |
Start refactoring
Split flattening and lowering.
Diffstat (limited to '6/isel.c')
-rw-r--r-- | 6/isel.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -108,7 +108,9 @@ static Loc *varloc(Isel *s, Node *n) } else if (hthas(s->stkoff, n)) { off = ptoi(htget(s->stkoff, n)); l = locmem(-off, locphysreg(Rrbp), NULL, mode(n)); - } else { + } else if (stacknode(n)) { + assert(0); + } else { l = htget(s->reglocs, n); if (!l) { l = locreg(mode(n)); |