[commit: ghc] master: Don't look up unnecessary return in LastStmt (4bde71d)

git at git.haskell.org git at git.haskell.org
Sun Sep 23 11:16:36 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4bde71df9a32bf6f5ee7d44fbbf79523da4b0a9e/ghc

>---------------------------------------------------------------

commit 4bde71df9a32bf6f5ee7d44fbbf79523da4b0a9e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Sep 20 20:02:39 2018 +0100

    Don't look up unnecessary return in LastStmt
    
    This fixes Trac #15607. The general pattern is well
    established (e.g. see the guard_op binding in rnStmt
    of BodyStme), but we weren't using it for LastStmt.


>---------------------------------------------------------------

4bde71df9a32bf6f5ee7d44fbbf79523da4b0a9e
 compiler/hsSyn/HsExpr.hs                         | 37 +++++++++++++-----------
 compiler/rename/RnExpr.hs                        | 22 ++++++++++----
 testsuite/tests/rename/should_fail/T15607.hs     |  6 ++++
 testsuite/tests/rename/should_fail/T15607.stderr |  5 ++++
 testsuite/tests/rename/should_fail/all.T         |  1 +
 5 files changed, 49 insertions(+), 22 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 4bde71df9a32bf6f5ee7d44fbbf79523da4b0a9e


More information about the ghc-commits mailing list