diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-01-01 02:42:24 -0800 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-01-03 15:07:48 -0500 |
commit | 1a677839aad28d5da1ffc9b2dc3741945c68705b (patch) | |
tree | 4b51eb60d519f8dba4ac74441a4fa2080f519333 /lisc/ssa.c | |
parent | d9aa722d55ec17c3cb3b3a39102ead8f6df2e93e (diff) | |
download | roux-1a677839aad28d5da1ffc9b2dc3741945c68705b.tar.gz |
index() conflicts with string.h on freebsd
rename it to avoid the conflict.
Diffstat (limited to 'lisc/ssa.c')
-rw-r--r-- | lisc/ssa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisc/ssa.c b/lisc/ssa.c index 9cebb77..7353dc3 100644 --- a/lisc/ssa.c +++ b/lisc/ssa.c @@ -282,7 +282,7 @@ fillfron(Fn *fn) } static Ref -index(int t, Fn *fn) +refindex(int t, Fn *fn) { return newtmp(fn->tmp[t].name, fn); } @@ -322,7 +322,7 @@ phiins(Fn *fn) if (fn->tmp[t].ndef == 1) r = TMP(t); else - r = index(t, fn); + r = refindex(t, fn); i->to = r; } else { if (!BGET(u, b->id)) { @@ -410,7 +410,7 @@ rendef(Ref *r, Blk *b, Name **stk, Fn *fn) t = r->val; if (req(*r, R) || !fn->tmp[t].visit) return; - r1 = index(t, fn); + r1 = refindex(t, fn); fn->tmp[r1.val].visit = t; stk[t] = nnew(r1, b, stk[t]); *r = r1; |