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:
6a82105
)
[project @ 2004-05-06 12:27:39 by simonpj]
author
simonpj
<unknown>
Thu, 6 May 2004 12:27:39 +0000
(12:27 +0000)
committer
simonpj
<unknown>
Thu, 6 May 2004 12:27:39 +0000
(12:27 +0000)
Add ASSERT
ghc/compiler/rename/RnExpr.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/rename/RnExpr.lhs
b/ghc/compiler/rename/RnExpr.lhs
index
59d0dd1
..
1b27004
100644
(file)
--- a/
ghc/compiler/rename/RnExpr.lhs
+++ b/
ghc/compiler/rename/RnExpr.lhs
@@
-952,7
+952,8
@@
segsToStmts :: [Segment [LStmt Name]] -> ([LStmt Name], FreeVars)
segsToStmts [] = ([], emptyFVs)
segsToStmts ((defs, uses, fwds, ss) : segs)
- = (new_stmt : later_stmts, later_uses `plusFV` uses)
+ = ASSERT( not (null ss) )
+ (new_stmt : later_stmts, later_uses `plusFV` uses)
where
(later_stmts, later_uses) = segsToStmts segs
new_stmt | non_rec = head ss