projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
70730de
)
Change an "if ... else return ()" into a "when"
author
Ian Lynagh
<igloo@earth.li>
Mon, 17 Jan 2011 19:17:14 +0000
(19:17 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 17 Jan 2011 19:17:14 +0000
(19:17 +0000)
compiler/main/HscMain.lhs
patch
|
blob
|
history
diff --git
a/compiler/main/HscMain.lhs
b/compiler/main/HscMain.lhs
index
627a49d
..
01ec740
100644
(file)
--- a/
compiler/main/HscMain.lhs
+++ b/
compiler/main/HscMain.lhs
@@
-1257,15
+1257,13
@@
hscCompileCoreExpr hsc_env srcspan ds_expr
-- Lint if necessary
-- ToDo: improve SrcLoc
- if lint_on then
+ when lint_on $
let ictxt = hsc_IC hsc_env
tyvars = varSetElems (tyVarsOfTypes (map idType (ic_tmp_ids ictxt)))
in
case lintUnfolding noSrcLoc tyvars prepd_expr of
Just err -> pprPanic "hscCompileCoreExpr" err
Nothing -> return ()
- else
- return ()
-- Convert to BCOs
bcos <- coreExprToBCOs dflags prepd_expr