[project @ 2001-05-02 18:19:27 by qrczak]
authorqrczak <unknown>
Wed, 2 May 2001 18:19:27 +0000 (18:19 +0000)
committerqrczak <unknown>
Wed, 2 May 2001 18:19:27 +0000 (18:19 +0000)
Oops, exprIsConApp_maybe should ignore only InlineMe notes.

ghc/compiler/coreSyn/CoreUtils.lhs

index 4b172e3..9abad8f 100644 (file)
@@ -560,8 +560,8 @@ idAppIsValue id n_val_args
 
 \begin{code}
 exprIsConApp_maybe :: CoreExpr -> Maybe (DataCon, [CoreExpr])
-exprIsConApp_maybe (Note _ expr) = exprIsConApp_maybe expr
-exprIsConApp_maybe expr          = analyse (collectArgs expr)
+exprIsConApp_maybe (Note InlineMe expr) = exprIsConApp_maybe expr
+exprIsConApp_maybe expr                 = analyse (collectArgs expr)
   where
     analyse (Var fun, args)
        | Just con <- isDataConId_maybe fun,