From 94356abffa2d8389d85b012bfd316a89459f8fa0 Mon Sep 17 00:00:00 2001 From: simonpj Date: Thu, 6 May 2004 12:27:39 +0000 Subject: [PATCH] [project @ 2004-05-06 12:27:39 by simonpj] Add ASSERT --- ghc/compiler/rename/RnExpr.lhs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc/compiler/rename/RnExpr.lhs b/ghc/compiler/rename/RnExpr.lhs index 59d0dd1..1b27004 100644 --- 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 -- 1.7.10.4