Fix get getIdFromTrivialExpr
authorSimon Peyton Jones <simonpj@microsoft.com>
Sat, 22 Sep 2018 23:44:14 +0000 (00:44 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Sun, 23 Sep 2018 01:45:23 +0000 (02:45 +0100)
commit2dbf88b3558c3b53a1207fb504232c3da67b266e
treec029b6564ddd8b9558add9d926876e43018fc30b
parentab44ff817bcbf81aa5311eb8bb6f2073f521bd26
Fix get getIdFromTrivialExpr

This bug, discovered by Trac #15325, has been lurking since

  commit 1c9fd3f1c5522372fcaf250c805b959e8090a62c
  Author: Simon Peyton Jones <simonpj@microsoft.com>
  Date:   Thu Dec 3 12:57:54 2015 +0000

    Case-of-empty-alts is trivial (Trac #11155)

I'd forgotttnen to modify getIdFromTrivialExpr when I
modified exprIsTrivial.   Easy to fix, though.
compiler/coreSyn/CoreUtils.hs
testsuite/tests/ghci/scripts/T15325.hs [new file with mode: 0644]
testsuite/tests/ghci/scripts/T15325.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T15325.stderr [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T