Fix a bug in codegen for non-updatable selector thunks (#8817)
authorSimon Marlow <marlowsd@gmail.com>
Thu, 27 Feb 2014 09:41:19 +0000 (09:41 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 27 Feb 2014 09:41:19 +0000 (09:41 +0000)
commitb1ddec1e6d4695d71d38b59db26829d71ad784e1
treea6ea9e1d800de9a92ff3368c96bf2cc1adcd0bb9
parentb1ee32edbe9be7b695cce7975450782e0a290c47
Fix a bug in codegen for non-updatable selector thunks (#8817)

To evaluate most non-updatable thunks, we can jump directly to the
entry code if we know what it is.  But not for a selector thunk: these
might be updated by the garbage collector, so we have to enter the
closure with an indirect jump through its info pointer.
compiler/codeGen/StgCmmClosure.hs