Fix the CPS pass to pack the continuation with correct label form.
authorMichael D. Adams <adamsmd@cs.indiana.edu>
Sat, 14 Jul 2007 18:49:55 +0000 (18:49 +0000)
committerMichael D. Adams <adamsmd@cs.indiana.edu>
Sat, 14 Jul 2007 18:49:55 +0000 (18:49 +0000)
It was using the return point label before; now it uses the info label.

compiler/cmm/CmmCPSGen.hs

index abea84f..5a98ae1 100644 (file)
@@ -393,7 +393,7 @@ pack_continuation allow_header_set
           _ -> isJust cont_id
 
     maybe_header = if allow_header_set && needs_header_set
-                   then maybe Nothing (Just . CmmLit . CmmLabel) cont_id
+                   then maybe Nothing (Just . CmmLit . CmmLabel . entryLblToInfoLbl) cont_id
                    else Nothing
 
 pack_frame :: WordOff         -- ^ Current frame size