From b8172ba1e6b463fbacf21fc39474a1b5580c13a0 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 14 Feb 2012 11:44:55 +0000 Subject: Fix an SRT-related bug We were using the SRT information generated by the computeSRTs pass to decide whether to add a static link field to a constructor or not, and this broke when I disabled computeSRTs for the new code generator. So I've hacked it for now to only rely on the SRT information generated by CoreToStg. --- compiler/codeGen/StgCmmCon.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/codeGen/StgCmmCon.hs') diff --git a/compiler/codeGen/StgCmmCon.hs b/compiler/codeGen/StgCmmCon.hs index e17ac4fd32..1a40a4273f 100644 --- a/compiler/codeGen/StgCmmCon.hs +++ b/compiler/codeGen/StgCmmCon.hs @@ -92,6 +92,7 @@ cgTopRhsCon id con args info_tbl dontCareCCS -- Because it's static data caffy -- Has CAF refs + False -- no SRT payload -- BUILD THE OBJECT -- cgit v1.2.1