From: simonmar Date: Wed, 14 Jun 2000 14:16:45 +0000 (+0000) Subject: [project @ 2000-06-14 14:16:45 by simonmar] X-Git-Tag: Approximately_9120_patches~4197 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e28748e717e49694e70b60eef0f27887b8445583;p=ghc-hetmet.git [project @ 2000-06-14 14:16:45 by simonmar] isNeverInlinePrag returned False for a NOINLINE pragma, which seems wrong to me. 4.07 also has this bug, and it's why Memo is going wrong. --- diff --git a/ghc/compiler/basicTypes/IdInfo.lhs b/ghc/compiler/basicTypes/IdInfo.lhs index 8cc168d..f73ba4f 100644 --- a/ghc/compiler/basicTypes/IdInfo.lhs +++ b/ghc/compiler/basicTypes/IdInfo.lhs @@ -331,11 +331,11 @@ data InlinePragInfo -- exact significance of the IMustNotBeINLINEd pragma isNeverInlinePrag :: InlinePragInfo -> Bool -isNeverInlinePrag (IMustNotBeINLINEd True Nothing) = True -isNeverInlinePrag other = False +isNeverInlinePrag (IMustNotBeINLINEd _ Nothing) = True +isNeverInlinePrag other = False neverInlinePrag :: InlinePragInfo -neverInlinePrag = IMustNotBeINLINEd True Nothing +neverInlinePrag = IMustNotBeINLINEd True{-should be False? --SDM -} Nothing instance Outputable InlinePragInfo where -- This is now parsed in interface files