diff options
| author | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2006-09-19 01:25:28 +0000 |
|---|---|---|
| committer | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2006-09-19 01:25:28 +0000 |
| commit | a43af120cd6317d6b8269ff7811c60ed23ac10c2 (patch) | |
| tree | e41bc12ceef086675c95bc145433734c2576dda2 /compiler | |
| parent | 6be927feb4c910a59990b5d2c32e0c41c3a2a95b (diff) | |
| download | haskell-a43af120cd6317d6b8269ff7811c60ed23ac10c2.tar.gz | |
Adapt SimplUtils.getContArgs to conditional SubstEnv
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/simplCore/SimplUtils.lhs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/simplCore/SimplUtils.lhs b/compiler/simplCore/SimplUtils.lhs index 4b6c4a347c..4a61341b5b 100644 --- a/compiler/simplCore/SimplUtils.lhs +++ b/compiler/simplCore/SimplUtils.lhs @@ -246,7 +246,9 @@ getContArgs chkr fun orig_cont where args = reverse acc hole_ty = applyTypeToArgs (Var fun) (idType fun) - [substExpr se arg | (arg,se,_) <- args] + [substExpr_mb se arg | (arg,se,_) <- args] + substExpr_mb Nothing arg = arg + substExpr_mb (Just se) arg = substExpr se arg ---------------------------- vanilla_stricts, computed_stricts :: [Bool] |
