More work on the simplifier's inlining strategies
[ghc-hetmet.git] / compiler / coreSyn / CoreFVs.lhs
index 3ff583e..1e8c9e7 100644 (file)
@@ -421,7 +421,8 @@ idUnfoldingVars :: Id -> VarSet
 -- we might get out-of-scope variables
 idUnfoldingVars id
   = case realIdUnfolding id of
-      CoreUnfolding { uf_tmpl = rhs, uf_guidance = InlineRule {} }
+      CoreUnfolding { uf_tmpl = rhs, uf_src = src }
+                          | isInlineRuleSource src
                           -> exprFreeVars rhs
       DFunUnfolding _ args -> exprsFreeVars args
       _                    -> emptyVarSet