one more missing patch from new codegen path
authordias@eecs.harvard.edu <unknown>
Wed, 26 Nov 2008 16:57:42 +0000 (16:57 +0000)
committerdias@eecs.harvard.edu <unknown>
Wed, 26 Nov 2008 16:57:42 +0000 (16:57 +0000)
compiler/cmm/CmmExpr.hs
compiler/codeGen/StgCmmBind.hs

index 6e09a6f..6c38c03 100644 (file)
@@ -419,6 +419,8 @@ instance Ord GlobalReg where
    compare _ GCFun = GT
    compare BaseReg _ = LT
    compare _ BaseReg = GT
+   compare EagerBlackholeInfo _ = LT
+   compare _ EagerBlackholeInfo = GT
 
 -- convenient aliases
 spReg, hpReg, spLimReg, nodeReg :: CmmReg
index ad1b3e2..e4960fc 100644 (file)
@@ -597,7 +597,7 @@ link_caf :: ClosureInfo
 -- updated with the new value when available.  The reason for all of this
 -- is that we only want to update dynamic heap objects, not static ones,
 -- so that generational GC is easier.
-link_caf cl_info is_upd = do
+link_caf cl_info _is_upd = do
   {    -- Alloc black hole specifying CC_HDR(Node) as the cost centre
   ; let        use_cc   = costCentreFrom (CmmReg nodeReg)
         blame_cc = use_cc