Fix bytecode generator panic
authorSeraphime Kirkovski <kirkseraph@gmail.com>
Wed, 20 Jul 2016 07:47:23 +0000 (09:47 +0200)
committerBen Gamari <ben@smart-cactus.org>
Wed, 20 Jul 2016 13:17:50 +0000 (15:17 +0200)
commit8de6e13f9ef784750e502955fcb38d4a7e179727
tree5c4755be247b3d6ec2f5b83374b7993628851a67
parent908f8e234fdbf951e763e0c47b018c6f74ae952c
Fix bytecode generator panic

This fixes #12128.

The bug was introduced in 1c9fd3f1c5522372fcaf250c805b959e8090a62c.

Test Plan: ./validate

Reviewers: simonmar, austin, hvr, simonpj, bgamari

Reviewed By: bgamari

Subscribers: simonpj, thomie

Differential Revision: https://phabricator.haskell.org/D2374

GHC Trac Issues: #12128
compiler/ghci/ByteCodeGen.hs
testsuite/tests/ghci/should_run/T12128.hs [new file with mode: 0644]
testsuite/tests/ghci/should_run/T12128.script [new file with mode: 0644]
testsuite/tests/ghci/should_run/all.T