Fix dependencies among specialisations for imported Ids
[ghc-hetmet.git] / rts / sm / Evac.c
index 65da076..9a5f278 100644 (file)
@@ -704,7 +704,6 @@ loop:
 
   case TSO:
       copy(p,info,q,sizeofW(StgTSO),gen);
-      evacuate((StgClosure**)&(((StgTSO*)(*p))->stackobj));
       return;
 
   case STACK:
@@ -943,7 +942,7 @@ selector_loop:
               // For the purposes of LDV profiling, we have destroyed
               // the original selector thunk, p.
               SET_INFO(p, (StgInfoTable *)info_ptr);
-              OVERWRITING_CLOSURE(p);
+              OVERWRITING_CLOSURE((StgClosure*)p);
               SET_INFO(p, &stg_WHITEHOLE_info);
 #endif