diff options
author | Simon Marlow <marlowsd@gmail.com> | 2016-09-15 10:11:34 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2016-09-15 13:23:36 +0100 |
commit | 86836a2ecc089b917866a2cb65b716fd5f04cc56 (patch) | |
tree | d4afa1e6e7b35046a9cc8b08cf563089541f683c /compiler/codeGen/CodeGen | |
parent | 876b00ba25a615423f48b0cf9d443a9fd5dbd6f4 (diff) | |
download | haskell-86836a2ecc089b917866a2cb65b716fd5f04cc56.tar.gz |
Fix codegen bug in PIC version of genSwitch (#12433)
Summary:
* getNonClobberedReg instead of getSomeReg, because the reg needs to
survive across t_code
* Use a new reg for the table offset calculation instead of clobbering
the reg returned by expr (this was the bug affecting #12433)
Test Plan: New unit test; validate
Reviewers: rwbarton, bgamari, austin, erikd
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2529
GHC Trac Issues: #12433
Diffstat (limited to 'compiler/codeGen/CodeGen')
0 files changed, 0 insertions, 0 deletions