basicblock: handle athrow as return
[mate.git] / Mate / X86CodeGen.hs
index af3e98d282a31e37c35e40898c70bfa487eac400..5674523f9cb8fb90bad456510abb0bd0eb51ec60 100644 (file)
@@ -226,6 +226,7 @@ emitFromBB cls method = do
     emit' ATHROW = do
       trapaddr <- emitSigIllTrap 2
       let patcher resp reip = do
+            error "no athrow for you, sorry"
             emitSigIllTrap 2
             return reip
       return $ Just (trapaddr, ThrowException patcher)