From e28748e717e49694e70b60eef0f27887b8445583 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 14 Jun 2000 14:16:45 +0000 Subject: [PATCH] [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. --- ghc/compiler/basicTypes/IdInfo.lhs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.10.4