Skip to content

StgToByteCode: minor refactor

Krzysztof Gogolewski requested to merge wip/assert-nonvoid into master

Two minor refactors in separate commits:

  1. 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.

  2. layoutNativeCall was always called with a primRepCmmType platform callback. Hence we can put it inside of layoutNativeCall rather than repeat it.

Merge request reports