Fix nasty recompilation bug in MkIface.computeChangedOccs
authorsimonpj@microsoft.com <unknown>
Thu, 20 Dec 2007 16:43:07 +0000 (16:43 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 20 Dec 2007 16:43:07 +0000 (16:43 +0000)
commitc4ea1371c0683bbd6e6c78d73435de369bb6c468
treebb744804b44d1ff681e91aa0b3708775659bc65c
parentca919ae01e81fb4afb2243bb34eceff56ca66043
Fix nasty recompilation bug in MkIface.computeChangedOccs

MERGE to 6.8 branch

In computeChangedOccs we look up the old version of a Name.
But a WiredIn Name doesn't have an old version, because WiredIn things
don't appear in interface files at all.

Result: ghc-6.9: panic! (the 'impossible' happened)
  (GHC version 6.9 for x86_64-unknown-linux):
lookupVers1 base:GHC.Prim chr#{v}

This fixes the problem.  The patch should merge easily onto the branch.
compiler/iface/MkIface.lhs