projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9035ad4
)
[project @ 2001-08-20 16:48:50 by simonpj]
author
simonpj
<unknown>
Mon, 20 Aug 2001 16:48:50 +0000
(16:48 +0000)
committer
simonpj
<unknown>
Mon, 20 Aug 2001 16:48:50 +0000
(16:48 +0000)
Add assertion
ghc/compiler/types/TyCon.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/types/TyCon.lhs
b/ghc/compiler/types/TyCon.lhs
index
fb48222
..
17ffb0e
100644
(file)
--- a/
ghc/compiler/types/TyCon.lhs
+++ b/
ghc/compiler/types/TyCon.lhs
@@
-466,7
+466,10
@@
tyConSelIds other_tycon = []
\begin{code}
tyConPrimRep :: TyCon -> PrimRep
tyConPrimRep (PrimTyCon {primTyConRep = rep}) = rep
-tyConPrimRep _ = PtrRep
+tyConPrimRep tc = ASSERT( not (isUnboxedTupleTyCon tc) )
+ PtrRep
+ -- We should not be asking what the representation of an
+ -- unboxed tuple is, because it isn't a first class value.
\end{code}
\begin{code}