From: Norman Ramsey Date: Fri, 14 Sep 2007 14:54:35 +0000 (+0000) Subject: make remove_entry_label actually work inside ZipDataflow X-Git-Tag: 2007-09-25~76 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d8f6f78cd8342fcfcb4a2789d7f9629123778f54;p=ghc-hetmet.git make remove_entry_label actually work inside ZipDataflow --- diff --git a/compiler/cmm/ZipDataflow.hs b/compiler/cmm/ZipDataflow.hs index c09a57e..cf18b13 100644 --- a/compiler/cmm/ZipDataflow.hs +++ b/compiler/cmm/ZipDataflow.hs @@ -28,6 +28,8 @@ import UniqSupply import Control.Monad import Maybe +#include "HsVersions.h" + {- \section{A very polymorphic infrastructure for dataflow problems} @@ -421,7 +423,7 @@ labelGraph id (Graph tail blocks) = LGraph id (insertBlock (Block id tail) block remove_entry_label :: LGraph m l -> Graph m l remove_entry_label g = - let FGraph e (ZBlock (ZFirst id tail)) others = entry g + let FGraph e (ZBlock (ZFirst id) tail) others = entry g in ASSERT (id == e) Graph tail others {- @@ -857,3 +859,7 @@ subAnalysis' m = return a } where pprFacts env = nest 2 $ vcat $ map pprFact $ ufmToList env pprFact (id, a) = hang (ppr id <> colon) 4 (ppr a) + + +_unused :: FS.FastString +_unused = undefined