fix: make sure maxIndex takes into account dead variables too
This commit is contained in:
parent
b44e27c91c
commit
8ec03b09ec
1 changed files with 2 additions and 2 deletions
|
|
@ -58,8 +58,8 @@ private def collectAlts (f : FnBody → Collector) (alts : Array Alt) : Collecto
|
|||
collectArray alts $ fun alt => f alt.body
|
||||
|
||||
partial def collectFnBody : FnBody → Collector
|
||||
| FnBody.vdecl x _ v b => collectExpr v >> collectFnBody b
|
||||
| FnBody.jdecl j ys v b => collectFnBody v >> collectParams ys >> collectFnBody b
|
||||
| FnBody.vdecl x _ v b => collectVar x >> collectExpr v >> collectFnBody b
|
||||
| FnBody.jdecl j ys v b => collectJP j >> collectFnBody v >> collectParams ys >> collectFnBody b
|
||||
| FnBody.set x _ y b => collectVar x >> collectArg y >> collectFnBody b
|
||||
| FnBody.uset x _ y b => collectVar x >> collectVar y >> collectFnBody b
|
||||
| FnBody.sset x _ _ y _ b => collectVar x >> collectVar y >> collectFnBody b
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue