diff --git a/ghc/runtime/main/StgStartup.lhc b/ghc/runtime/main/StgStartup.lhc index 61d963bc0a6c34174eba390074113241e66b8462..30b29a85490455a6ee5ae6f1966336b71b2c7b86 100644 --- a/ghc/runtime/main/StgStartup.lhc +++ b/ghc/runtime/main/StgStartup.lhc @@ -355,10 +355,13 @@ STGFUN(ErrorIO_innards) /* Finish stack setup as if for a top-level task and enter the error node */ + /* Put an IoWorld token on the B stack */ + SpB -= BREL(1); + *SpB = (P_) realWorldZh_closure; +/* SpA = SuA - AREL(1); - *SpA = (P_) realWorldZh_closure; - +*/ STKO_LINK(StkOReg) = PrelBase_Z91Z93_closure; STKO_RETURN(StkOReg) = NULL;