X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FbasicTypes%2FIdInfo.lhs;h=765d77629a197aeff65dafbcb18a142e4bd647c7;hb=44ac4f51304d0693ecd03e724bf9d9d671a40612;hp=5797436b625884d22b817280745efc1b302545b0;hpb=1727a8c0ba62091ca42a45244de4dcb6278a02a1;p=ghc-hetmet.git diff --git a/ghc/compiler/basicTypes/IdInfo.lhs b/ghc/compiler/basicTypes/IdInfo.lhs index 5797436..765d776 100644 --- a/ghc/compiler/basicTypes/IdInfo.lhs +++ b/ghc/compiler/basicTypes/IdInfo.lhs @@ -674,12 +674,12 @@ zapLamInfo info@(IdInfo {occInfo = occ, newDemandInfo = demand}) where -- The "unsafe" occ info is the ones that say I'm not in a lambda -- because that might not be true for an unsaturated lambda - is_safe_occ (OneOcc in_lam _ _) = in_lam - is_safe_occ other = True + is_safe_occ (OneOcc in_lam _) = in_lam + is_safe_occ other = True safe_occ = case occ of - OneOcc _ once min_args -> OneOcc insideLam once min_args - other -> occ + OneOcc _ once -> OneOcc insideLam once + other -> occ is_safe_dmd Nothing = True is_safe_dmd (Just dmd) = not (isStrictDmd dmd)