From: Michael D. Adams Date: Thu, 5 Jul 2007 17:05:15 +0000 (+0000) Subject: Fixed a bug in the CPS pass X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f770022bd9c3c3af9a8e384be88d087dba188517 Fixed a bug in the CPS pass --- diff --git a/compiler/cmm/CmmCPSGen.hs b/compiler/cmm/CmmCPSGen.hs index 4b8f83b..c78525e 100644 --- a/compiler/cmm/CmmCPSGen.hs +++ b/compiler/cmm/CmmCPSGen.hs @@ -168,7 +168,7 @@ continuationToProc (max_stack, update_frame_size, formats) stack_use uniques else case lookup (mkReturnPtLabel $ getUnique next) formats of Nothing -> [CmmBranch next] Just cont_format -> - pack_continuation False curr_format cont_format ++ + pack_continuation True curr_format cont_format ++ tail_call (curr_stack - cont_stack) (CmmLit $ CmmLabel $ mkReturnPtLabel $ getUnique next) arguments