Cast switch scrutinees to W_ in AutoApply.cmm
authorwolfgang.thaller@gmx.net <unknown>
Sun, 22 Oct 2006 16:05:07 +0000 (16:05 +0000)
committerwolfgang.thaller@gmx.net <unknown>
Sun, 22 Oct 2006 16:05:07 +0000 (16:05 +0000)
commit4f6f4a294f00d559b4f024255d11eb1da9bfe036
tree596def24d632826db1824481cf4fceabbb6c23de
parent6c5705e398947a3b74a3f9b7cfb3dd93ca12b8e0
Cast switch scrutinees to W_ in AutoApply.cmm

... and make CmmLint check for this problem.
This doesn't matter for -fvia-C, but passing a halfword to a switch
will make the NCG generate crashing code.
compiler/cmm/CmmLint.hs
utils/genapply/GenApply.hs