[project @ 2002-04-02 12:22:37 by simonmar]
authorsimonmar <unknown>
Tue, 2 Apr 2002 12:22:37 +0000 (12:22 +0000)
committersimonmar <unknown>
Tue, 2 Apr 2002 12:22:37 +0000 (12:22 +0000)
oops, accidentally committed some untested (and non-working) cleanups
in the last commit.  This commit fixes it up again.

(fixes the ByteCodeGen panic in GHCi on the HEAD)

ghc/compiler/ghci/ByteCodeGen.lhs

index 8c5ae8c..8b0a8a5 100644 (file)
@@ -643,9 +643,12 @@ schemeT d s p app
 
    -- Case 2
    | [arg1,arg2] <- args_r_to_l,
-     let isVoidRepAtom (_, AnnVar v)    = VoidRep == typePrimRep (idType v)
+     let 
+        isVoidRepAtom (_, AnnVar v)    = typePrimRep (idType v) == VoidRep
          isVoidRepAtom (_, AnnNote n e) = isVoidRepAtom e
-     in  isVoidRepAtom arg2
+        isVoidRepAtom _ = False
+     in  
+        isVoidRepAtom arg2
    = --trace (if isSingleton args_r_to_l
      --       then "schemeT: unboxed singleton"
      --       else "schemeT: unboxed pair with Void first component") (