X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FcodeGen%2FStgCmmBind.hs;h=6451840f048ebba199e7e522a6066a51fba5242a;hb=5fa086c51816f09d03fb1a089dde64df6bd2d8a3;hp=5af8f341ad91ff750f78d71aa9f730e05b53bf07;hpb=a02e7f40afc1aab7fe466f949f505c1d7250713d;p=ghc-hetmet.git diff --git a/compiler/codeGen/StgCmmBind.hs b/compiler/codeGen/StgCmmBind.hs index 5af8f34..6451840 100644 --- a/compiler/codeGen/StgCmmBind.hs +++ b/compiler/codeGen/StgCmmBind.hs @@ -605,7 +605,10 @@ link_caf cl_info _is_upd = do -- so that the garbage collector can find them -- This must be done *before* the info table pointer is overwritten, -- because the old info table ptr is needed for reversion - ; emitRtsCallWithVols rtsPackageId (fsLit "newCAF") [(CmmReg nodeReg,AddrHint)] [node] False + ; emitRtsCallWithVols rtsPackageId (fsLit "newCAF") + [ (CmmReg (CmmGlobal BaseReg), AddrHint), + (CmmReg nodeReg, AddrHint) ] + [node] False -- node is live, so save it. -- Overwrite the closure with a (static) indirection