[project @ 2001-08-20 14:10:02 by simonmar]
authorsimonmar <unknown>
Mon, 20 Aug 2001 14:10:02 +0000 (14:10 +0000)
committersimonmar <unknown>
Mon, 20 Aug 2001 14:10:02 +0000 (14:10 +0000)
commitcc7aac1f795f672bc71c155c424d8bd100663ecc
tree644a5a6c381c1167f4f28cbbf3f5a47e6657b07b
parent130f6b84e3cdd09ded40585bfa3525373a666918
[project @ 2001-08-20 14:10:02 by simonmar]
Remove the in-range assertions on mkMachInt/mkMachWord.  They clearly
aren't true, because there's nothing stopping you from writing an
out-of-range Int# literal (although that's the only way I can see for
these to arise).

The wider issue is what should be done about out-of-range Int#
literals; I vaguely remember that at some point we disallowed them,
but I can't find anything in the logs.  The case which triggered the
assertion, namely "intToWord# 0xffff0000" would appear to be a
legitimate use for an out-of-range Int# literal though, given that
you can't write Word# literals directly.
ghc/compiler/basicTypes/Literal.lhs