From: sewardj Date: Wed, 12 Apr 2000 09:34:46 +0000 (+0000) Subject: [project @ 2000-04-12 09:34:46 by sewardj] X-Git-Tag: Approximately_9120_patches~4730 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=d86b16ffc30730e4350154152d222a45ae47eaa8;p=ghc-hetmet.git [project @ 2000-04-12 09:34:46 by sewardj] checkClosureShallow: allow Hugs constructor itbls --- 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)) {