summaryrefslogtreecommitdiff
path: root/compiler/GHC/Stg/Lift
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-06-21 12:28:23 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-23 03:00:23 -0400
commitd8e5b274dd258f85867e874a35fa719922a758f0 (patch)
treebd738328282dc7af4a597e68b4e6d7c6904448d8 /compiler/GHC/Stg/Lift
parentaa1d0eb3629bd9d8fda3605c0b7b4dd52ee3d583 (diff)
downloadhaskell-d8e5b274dd258f85867e874a35fa719922a758f0.tar.gz
ghci: Correct free variable calculation in StgToByteCode
Fixes #20019
Diffstat (limited to 'compiler/GHC/Stg/Lift')
-rw-r--r--compiler/GHC/Stg/Lift/Analysis.hs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/GHC/Stg/Lift/Analysis.hs b/compiler/GHC/Stg/Lift/Analysis.hs
index d4e59a8d6e..5999104c9c 100644
--- a/compiler/GHC/Stg/Lift/Analysis.hs
+++ b/compiler/GHC/Stg/Lift/Analysis.hs
@@ -115,9 +115,6 @@ type instance XRhsClosure 'LiftLams = DIdSet
type instance XLet 'LiftLams = Skeleton
type instance XLetNoEscape 'LiftLams = Skeleton
-freeVarsOfRhs :: (XRhsClosure pass ~ DIdSet) => GenStgRhs pass -> DIdSet
-freeVarsOfRhs (StgRhsCon _ _ _ _ args) = mkDVarSet [ id | StgVarArg id <- args ]
-freeVarsOfRhs (StgRhsClosure fvs _ _ _ _) = fvs
-- | Captures details of the syntax tree relevant to the cost model, such as
-- closures, multi-shot lambdas and case expressions.