StgToByteCode: minor refactor
Two minor refactors in separate commits:
-
Some functions in
StgToByteCode
were filtering out void arguments. However,StgToByteCode
is called after unarisation: the void arguments should have been removed earlier. Instead of filtering out, we assert that the args are non-void. -
layoutNativeCall
was always called with aprimRepCmmType platform
callback. Hence we can put it inside oflayoutNativeCall
rather than repeat it.