Pulled up list expressions in a similar way to array expressions
This commit is contained in:
parent
bc7e682119
commit
a1daf15576
|
@ -324,6 +324,10 @@ pullUp pullUpArraysInsideRecords
|
||||||
A.ExprVariable _ (A.DirectedVariable _ _ _) -> return e'
|
A.ExprVariable _ (A.DirectedVariable _ _ _) -> return e'
|
||||||
--TODO work out whether to pull up DerefVariable
|
--TODO work out whether to pull up DerefVariable
|
||||||
_ -> pull t e'
|
_ -> pull t e'
|
||||||
|
A.List _ ->
|
||||||
|
case e' of
|
||||||
|
A.ExprVariable _ _ -> return e'
|
||||||
|
_ -> pull t e'
|
||||||
_ -> return e'
|
_ -> return e'
|
||||||
where
|
where
|
||||||
pull :: A.Type -> A.Expression -> PassM A.Expression
|
pull :: A.Type -> A.Expression -> PassM A.Expression
|
||||||
|
|
Loading…
Reference in New Issue
Block a user