patch applied (ghc): missed a case in a previous fix

John Dias dias at eecs.harvard.edu
Fri Dec 18 15:24:56 EST 2009


Thu Dec 17 13:04:43 PST 2009  dias at cs.tufts.edu
  * missed a case in a previous fix
  Ignore-this: ff40b8516a3de3fc36a55534620e4f50
  
  Here's the obscure problem:
  -- However, we also want to allow an assignment to be generated
  -- in the case when the types are compatible, because this allows
  -- some slightly-dodgy but occasionally-useful casts to be used,
  -- such as in RtClosureInspect where we cast an HValue to a MutVar#
  -- so we can print out the contents of the MutVar#.  If we generate
  -- code that enters the HValue, then we'll get a runtime panic, because
  -- the HValue really is a MutVar#.  The types are compatible though,
  -- so we can just generate an assignment.
  

    M ./compiler/codeGen/StgCmmExpr.hs -4 +26

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20091217210443-a3835-c3f4bde8340b99fe001eaa9ec6d2625c44575403.gz



More information about the Cvs-ghc mailing list