Untag closure pointers before trying to print them.
[ghc-hetmet.git] / rts / Printer.c
index 1ad6306..2fbe276 100644 (file)
@@ -121,8 +121,9 @@ printThunkObject( StgThunk *obj, char* tag )
 void
 printClosure( StgClosure *obj )
 {
+    obj = UNTAG_CLOSURE(obj);
+
     StgInfoTable *info;
-    
     info = get_itbl(obj);
 
     switch ( info->type ) {