Force recompilation of BCOs when they were compiled in HscNothing mode.
authorThomas Schilling <nominolo@googlemail.com>
Wed, 26 Nov 2008 18:34:02 +0000 (18:34 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Wed, 26 Nov 2008 18:34:02 +0000 (18:34 +0000)
commit5e0453cad41cb0f004c1680b392d79651053a1d4
treeef9eb2a91973f99ec2fe66cc3459e008413cafce
parentfdd5b2fbeb2c128cb9e0d9f2e29d8ececa46f97b
Force recompilation of BCOs when they were compiled in HscNothing mode.

Previously, loading a set of modules in HscNothing mode and then
switching to HscInterpreted could lead to crashes since modules
compiled with HscNothing were thought to be valid bytecode objects.

This patch forces recompilation in these cases, hence switching between
HscNothing and HscInterpreted should be safe now.
compiler/main/GHC.hs
compiler/main/HscTypes.lhs