From 0a095555ecc6400aba433bb7562140ac407730e1 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 12 Jan 2004 12:13:26 +0000 Subject: [PATCH] [project @ 2004-01-12 12:13:26 by simonpj] Use PolyAlt when we dont know constructors --- ghc/compiler/stgSyn/CoreToStg.lhs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/stgSyn/CoreToStg.lhs b/ghc/compiler/stgSyn/CoreToStg.lhs index 02258a9..2f59489 100644 --- a/ghc/compiler/stgSyn/CoreToStg.lhs +++ b/ghc/compiler/stgSyn/CoreToStg.lhs @@ -19,7 +19,7 @@ import Type import TyCon ( isAlgTyCon ) import Id import Var ( Var, globalIdDetails, idType ) -import TyCon ( isUnboxedTupleTyCon, isPrimTyCon, isFunTyCon ) +import TyCon ( isUnboxedTupleTyCon, isPrimTyCon, isFunTyCon, isHiBootTyCon ) #ifdef ILX import MkId ( unsafeCoerceId ) #endif @@ -411,7 +411,8 @@ mkStgAltType scrut_ty = case splitTyConApp_maybe (repType scrut_ty) of Just (tc,_) | isUnboxedTupleTyCon tc -> UbxTupAlt tc | isPrimTyCon tc -> PrimAlt tc - | isAlgTyCon tc -> AlgAlt tc + | isHiBootTyCon tc -> PolyAlt -- Algebraic, but no constructors visible + | isAlgTyCon tc -> AlgAlt tc | isFunTyCon tc -> PolyAlt | otherwise -> pprPanic "mkStgAlts" (ppr tc) Nothing -> PolyAlt -- 1.7.10.4