diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-01 15:46:09 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:29 -0400 |
commit | 0d5fb419e3eda0832ee549d7958e19bb9afaa15a (patch) | |
tree | e1e9d5db0afda044050ad939f0ad8d1eea3c4232 /lisc/isel.c | |
parent | a2a2231027d2e60777b92a52701ac33c56dd362f (diff) | |
download | roux-0d5fb419e3eda0832ee549d7958e19bb9afaa15a.tar.gz |
avoid keyword clash by using cons for constants
Diffstat (limited to 'lisc/isel.c')
-rw-r--r-- | lisc/isel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/isel.c b/lisc/isel.c index 9d494ce..e2d21ab 100644 --- a/lisc/isel.c +++ b/lisc/isel.c @@ -41,7 +41,7 @@ sel(Ins *i, Fn *fn) } emit(OCopy, i->to, r0, R); emit(OCopy, R, r1, R); - if (rtype(i->arg[1]) == RConst) { + if (rtype(i->arg[1]) == RCons) { /* immediates not allowed for * divisions in x86 */ @@ -52,7 +52,7 @@ sel(Ins *i, Fn *fn) emit(OIADiv, R, r0, R); emit(OIACltd, SYM(RDX), R, R); emit(OCopy, SYM(RAX), i->arg[0], R); - if (rtype(i->arg[1]) == RConst) + if (rtype(i->arg[1]) == RCons) emit(OCopy, r0, i->arg[1], R); break; case OAdd: |