Fix case-merge bug that was breaking the HEAD
authorsimonpj@microsoft.com <unknown>
Wed, 21 Feb 2007 09:11:23 +0000 (09:11 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 21 Feb 2007 09:11:23 +0000 (09:11 +0000)
commitdc8d5354bfd92e09973d11c4c3d8728f2da107ba
treefefa3edf8cc207d1b4b7e7c1c13221e3505b6187
parent1e9a92161ce58d3eb1d35b9b5f9f67e4d1bc03cf
Fix case-merge bug that was breaking the HEAD

My re-org of the case-merging transformation introduced a bug, which led
to incorrect code.   This only showed up occasionally, but it generated
incorrect code for PprC.pprCastReg in the stage-2 compiler. As a result
the stage-2 compiler ran without crashing, but itself generated bogus C.

For a change, this is one that Core Lint couldn't find, so the trail was
a bit longer.  The fix is easy (and commented).
compiler/simplCore/SimplUtils.lhs