projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c13c1
)
Replace a checking `is_elem` with a plain `elem`
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 30 Sep 2009 08:43:58 +0000
(08:43 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 30 Sep 2009 08:43:58 +0000
(08:43 +0000)
This one complains sometimes, but there's no good way to improve it.
compiler/codeGen/CgClosure.lhs
patch
|
blob
|
history
diff --git
a/compiler/codeGen/CgClosure.lhs
b/compiler/codeGen/CgClosure.lhs
index
000f977
..
905f962
100644
(file)
--- a/
compiler/codeGen/CgClosure.lhs
+++ b/
compiler/codeGen/CgClosure.lhs
@@
-155,8
+155,7
@@
cgRhsClosure bndr cc bndr_info fvs upd_flag args body = do
-- Node points to it...
let
name = idName bndr
- is_elem = isIn "cgRhsClosure"
- bndr_is_a_fv = bndr `is_elem` fvs
+ bndr_is_a_fv = bndr `elem` fvs
reduced_fvs | bndr_is_a_fv = fvs `minusList` [bndr]
| otherwise = fvs