X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FsimplCore%2FOccurAnal.lhs;fp=ghc%2Fcompiler%2FsimplCore%2FOccurAnal.lhs;h=13bd97356fc00925ff197f617aa51e2b5431d60d;hb=52276d816ccaf9eef0fbd9c74833d6fd95b38cd8;hp=ae09f03adfcf76d0f8b6ce86050404809f01e15b;hpb=fb30abb2778cc0f3b07581b32d9cba0104937fa5;p=ghc-hetmet.git diff --git a/ghc/compiler/simplCore/OccurAnal.lhs b/ghc/compiler/simplCore/OccurAnal.lhs index ae09f03..13bd973 100644 --- a/ghc/compiler/simplCore/OccurAnal.lhs +++ b/ghc/compiler/simplCore/OccurAnal.lhs @@ -20,7 +20,7 @@ module OccurAnal ( import CoreSyn import CoreFVs ( idRuleVars ) import CoreUtils ( exprIsTrivial ) -import Id ( isDataConWorkId, isOneShotLambda, setOneShotLambda, +import Id ( isDataConWorkId, isOneShotBndr, setOneShotLambda, idOccInfo, setIdOccInfo, isExportedId, modifyIdInfo, idInfo, idArity, idSpecialisation, isLocalId, @@ -859,7 +859,7 @@ oneShotGroup (OccEnv cands encl ctxt) bndrs = case go ctxt bndrs [] of (new_ctxt, new_bndrs) -> (all is_one_shot new_bndrs, OccEnv cands encl new_ctxt, new_bndrs) where - is_one_shot b = isId b && isOneShotLambda b + is_one_shot b = isId b && isOneShotBndr b go ctxt [] rev_bndrs = (ctxt, reverse rev_bndrs)