[project @ 2003-09-19 15:58:00 by simonmar]
authorsimonmar <unknown>
Fri, 19 Sep 2003 15:58:00 +0000 (15:58 +0000)
committersimonmar <unknown>
Fri, 19 Sep 2003 15:58:00 +0000 (15:58 +0000)
commit14b100771dd80b774ea51388494cf0e24160db2d
tree1ec1e554a6dca886bd9d64302a688bffcdbac907
parentfeaf38913aefbc81cfe991a622820931f186e02d
[project @ 2003-09-19 15:58:00 by simonmar]
The whole family of index<blah>OffForeignPtr# primops has been broken
for some time now.  This commit fixes them.

I'm tempted to get rid of them altogether, since arguably the
withForeignPtr interface subsumes all this.  But if you want to index
off a ForeignPtr in pure code, you have to use unsafePerformIO, which
is hard to optimise away (GHC doesn't do it), so these primops still
have their uses.
ghc/compiler/absCSyn/AbsCUtils.lhs