From d8f6f78cd8342fcfcb4a2789d7f9629123778f54 Mon Sep 17 00:00:00 2001 From: Norman Ramsey Date: Fri, 14 Sep 2007 14:54:35 +0000 Subject: [PATCH] make remove_entry_label actually work inside ZipDataflow --- compiler/cmm/ZipDataflow.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.10.4