X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fspecialise%2FSpecConstr.lhs;fp=compiler%2Fspecialise%2FSpecConstr.lhs;h=8235196baf3b7bafaf98f1f981a51acd8dabacfa;hp=8e081694d4ead9f6b0cabd961b8dc3a35f285dc5;hb=2a130b134daa3d67fed0b5b2e2257446e2c23c76;hpb=367d9a0f37b3be938d14c650434beee3c79814fe diff --git a/compiler/specialise/SpecConstr.lhs b/compiler/specialise/SpecConstr.lhs index 8e08169..8235196 100644 --- a/compiler/specialise/SpecConstr.lhs +++ b/compiler/specialise/SpecConstr.lhs @@ -749,7 +749,7 @@ extendCaseBndrs env scrut case_bndr con alt_bndrs live_case_bndr = not (isDeadBinder case_bndr) env1 | Var v <- scrut = extendValEnv env v cval | otherwise = env -- See Note [Add scrutinee to ValueEnv too] - env2 | live_case_bndr = extendValEnv env case_bndr cval + env2 | live_case_bndr = extendValEnv env1 case_bndr cval | otherwise = env1 alt_bndrs' | case scrut of { Var {} -> True; _ -> live_case_bndr }