[project @ 2001-09-20 12:14:31 by simonpj]
authorsimonpj <unknown>
Thu, 20 Sep 2001 12:14:31 +0000 (12:14 +0000)
committersimonpj <unknown>
Thu, 20 Sep 2001 12:14:31 +0000 (12:14 +0000)
commitab061892ee2bf011c5eb2a809917fd77599acf6b
tree28507b20e4fca60cf1c506f12b1eb12e4bdc643b
parent2c2509997743edeb63830b86c8ee910db2414c6b
[project @ 2001-09-20 12:14:31 by simonpj]
------------------------------------------------
Make code generation ignore isLocalId/isGlobalId
------------------------------------------------

MERGE WITH STABLE BRANCH

CorePrep may introduce some new, top-level LocalIds.  This
breaks an invariant that the core2stg/code generator passes
occasionally used, namely that LocalIds are not top-level bound.

This commit fixes that problem.

It also removes an assert from CodeGen.cgTopRhs that asks
for the CgInfo of such new LocalIds -- but they may (legitimately)
not have any, so it was a bad ASSERT.  [Showed up in George
Russel's system.]
ghc/compiler/codeGen/CodeGen.lhs
ghc/compiler/stgSyn/CoreToStg.lhs