From d86b16ffc30730e4350154152d222a45ae47eaa8 Mon Sep 17 00:00:00 2001 From: sewardj Date: Wed, 12 Apr 2000 09:34:46 +0000 Subject: [PATCH] [project @ 2000-04-12 09:34:46 by sewardj] checkClosureShallow: allow Hugs constructor itbls --- ghc/rts/Sanity.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) { -- 1.7.10.4