projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Robustify the treatement of DFunUnfolding
[ghc-hetmet.git]
/
compiler
/
coreSyn
/
CoreSubst.lhs
diff --git
a/compiler/coreSyn/CoreSubst.lhs
b/compiler/coreSyn/CoreSubst.lhs
index
c5d8b83
..
3578037
100644
(file)
--- a/
compiler/coreSyn/CoreSubst.lhs
+++ b/
compiler/coreSyn/CoreSubst.lhs
@@
-543,8
+543,8
@@
substUnfoldingSC subst unf -- Short-cut version
| isEmptySubst subst = unf
| otherwise = substUnfolding subst unf
| isEmptySubst subst = unf
| otherwise = substUnfolding subst unf
-substUnfolding subst (DFunUnfolding con args)
- = DFunUnfolding con (map (substExpr (text "dfun-unf") subst) args)
+substUnfolding subst (DFunUnfolding ar con args)
+ = DFunUnfolding ar con (map (substExpr (text "dfun-unf") subst) args)
substUnfolding subst unf@(CoreUnfolding { uf_tmpl = tmpl, uf_src = src })
-- Retain an InlineRule!
substUnfolding subst unf@(CoreUnfolding { uf_tmpl = tmpl, uf_src = src })
-- Retain an InlineRule!