cvs commit: fptools/ghc/compiler/codeGen CodeGen.lhs fptools/ghc/compiler/stgSyn
CoreToStg.lhs
Simon Peyton Jones
simonpj@glass.cse.ogi.edu
Thu, 20 Sep 2001 05:14:32 -0700
simonpj 2001/09/20 05:14:31 PDT
Modified files:
ghc/compiler/codeGen CodeGen.lhs
ghc/compiler/stgSyn CoreToStg.lhs
Log:
------------------------------------------------
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.]
Revision Changes Path
1.39 +0 -2 fptools/ghc/compiler/codeGen/CodeGen.lhs
1.85 +27 -32 fptools/ghc/compiler/stgSyn/CoreToStg.lhs