Restrict Lint's complaints about recursive INLINEs somewhat
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 2 Aug 2017 08:48:58 +0000 (09:48 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 18 Aug 2017 13:51:19 +0000 (14:51 +0100)
commit118efb075367f4c8f686dfb34c0be8d464319c2f
tree11cf0c965b5c5f654354b74d4c7b74abde08fce7
parent6257fb528c1c92fbe3bd66441bfba00f632d1b50
Restrict Lint's complaints about recursive INLINEs somewhat

This patch makes the Lint warning about recursive functions with an
INLINE only apply if there is a stable unfolding.  If not (e.g. some
other pass took it out) we don't need to worry.  Not a big deal.
compiler/coreSyn/CoreLint.hs