summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/HscMain.hs8
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/main/HscMain.hs b/compiler/main/HscMain.hs
index 19a9d83367..331ec6da51 100644
--- a/compiler/main/HscMain.hs
+++ b/compiler/main/HscMain.hs
@@ -1280,12 +1280,8 @@ tryNewCodeGen hsc_env this_mod data_tycons
| otherwise
= {-# SCC "cmmPipeline" #-}
- let initTopSRT = initUs_ us emptySRT in
-
- let run_pipeline topSRT cmmgroup = do
- (topSRT, cmmgroup) <- cmmPipeline hsc_env topSRT cmmgroup
- return (topSRT,cmmgroup)
-
+ let initTopSRT = initUs_ us emptySRT
+ run_pipeline = cmmPipeline hsc_env
in do topSRT <- Stream.mapAccumL run_pipeline initTopSRT ppr_stream1
Stream.yield (srtToData topSRT)