[project @ 2003-09-23 15:10:43 by simonpj]
authorsimonpj <unknown>
Tue, 23 Sep 2003 15:10:43 +0000 (15:10 +0000)
committersimonpj <unknown>
Tue, 23 Sep 2003 15:10:43 +0000 (15:10 +0000)
Add more informative assertion

ghc/compiler/stgSyn/CoreToStg.lhs

index 603d2dd..8fdc003 100644 (file)
@@ -257,7 +257,7 @@ mkTopStgRhs is_static rhs_fvs srt binder_info (StgConApp con args)
   = StgRhsCon noCCS con args
 
 mkTopStgRhs is_static rhs_fvs srt binder_info rhs
-  = ASSERT( not is_static )
+  = ASSERT2( not is_static, ppr rhs )
     StgRhsClosure noCCS binder_info
                  (getFVs rhs_fvs)               
                  Updatable