summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-12-16 17:34:49 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2014-12-17 14:43:11 +0000
commit082cf137fdec4d5534e01e45a4e64fd157326db8 (patch)
tree26a1e62fc5a6ec6de458de72e097de02ebc5afcb /compiler/codeGen
parentf50d62bb6c0357991fabf938bc971d528bbf5cc4 (diff)
downloadhaskell-082cf137fdec4d5534e01e45a4e64fd157326db8.tar.gz
Improve an ASSERT
Diffstat (limited to 'compiler/codeGen')
-rw-r--r--compiler/codeGen/StgCmmExpr.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/codeGen/StgCmmExpr.hs b/compiler/codeGen/StgCmmExpr.hs
index ee635508fb..e54ae46028 100644
--- a/compiler/codeGen/StgCmmExpr.hs
+++ b/compiler/codeGen/StgCmmExpr.hs
@@ -642,7 +642,7 @@ cgConApp con stg_args
; emitReturn arg_exprs }
| otherwise -- Boxed constructors; allocate and return
- = ASSERT( stg_args `lengthIs` dataConRepRepArity con )
+ = ASSERT2( stg_args `lengthIs` dataConRepRepArity con, ppr con <+> ppr stg_args )
do { (idinfo, fcode_init) <- buildDynCon (dataConWorkId con) False
currentCCS con stg_args
-- The first "con" says that the name bound to this