Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
94356abf
Commit
94356abf
authored
May 06, 2004
by
simonpj
Browse files
[project @ 2004-05-06 12:27:39 by simonpj]
Add ASSERT
parent
6a821057
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/rename/RnExpr.lhs
View file @
94356abf
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment