[commit: ghc] wip/T10246: Ensure that Literals in an Int# case are in range (88950a1)
git at git.haskell.org
git at git.haskell.org
Sun Feb 5 04:25:09 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T10246
Link : http://ghc.haskell.org/trac/ghc/changeset/88950a11b9df37a2cf37349ec75f7b9868b1ea1e/ghc
>---------------------------------------------------------------
commit 88950a11b9df37a2cf37349ec75f7b9868b1ea1e
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Mon Apr 6 10:31:02 2015 +0200
Ensure that Literals in an Int# case are in range
This is one way to fix #10246 and #13171. The chosen path involves
adding the invariant that the argument of MachInt/MachWord etc. is
always in the appropriate range, and that the smart constructors for
them (mkMachInt etc.) wrap arguments that are outside the range in the
expected way.
Differential Revision: https://phabricator.haskell.org/D810
>---------------------------------------------------------------
88950a11b9df37a2cf37349ec75f7b9868b1ea1e
compiler/basicTypes/Literal.hs | 47 +++++++++++++++++++++-----------
compiler/deSugar/Match.hs | 24 ++++++++--------
compiler/deSugar/MatchLit.hs | 32 +++++++++++-----------
compiler/simplCore/SimplUtils.hs | 2 +-
testsuite/tests/codeGen/should_run/all.T | 4 +--
5 files changed, 62 insertions(+), 47 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 88950a11b9df37a2cf37349ec75f7b9868b1ea1e
More information about the ghc-commits
mailing list