X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSanity.c;h=2285c416c913a8319bc17a4c4fbf30239b898b2b;hb=d86b16ffc30730e4350154152d222a45ae47eaa8;hp=3b69393d7a364f7e8403fc4d3a9eaf24912dc69f;hpb=cd6055bc01f2b38bcd77b1b6943dda8dff3cb818;p=ghc-hetmet.git diff --git a/ghc/rts/Sanity.c b/ghc/rts/Sanity.c index 3b69393..2285c41 100644 --- a/ghc/rts/Sanity.c +++ b/ghc/rts/Sanity.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Sanity.c,v 1.19 2000/03/31 03:09:36 hwloidl Exp $ + * $Id: Sanity.c,v 1.20 2000/04/12 09:34:46 sewardj Exp $ * * (c) The GHC Team, 1998-1999 * @@ -164,7 +164,9 @@ checkStackClosure( StgClosure* c ) void checkClosureShallow( StgClosure* p ) { - ASSERT(LOOKS_LIKE_GHC_INFO(p->header.info)); + ASSERT(p); + ASSERT(LOOKS_LIKE_GHC_INFO(p->header.info) + || IS_HUGS_CONSTR_INFO(GET_INFO(p))); /* Is it a static closure (i.e. in the data segment)? */ if (LOOKS_LIKE_STATIC(p)) {