projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
basicblock: handle athrow as return
[mate.git]
/
Mate
/
X86CodeGen.hs
diff --git
a/Mate/X86CodeGen.hs
b/Mate/X86CodeGen.hs
index af3e98d282a31e37c35e40898c70bfa487eac400..5674523f9cb8fb90bad456510abb0bd0eb51ec60 100644
(file)
--- a/
Mate/X86CodeGen.hs
+++ b/
Mate/X86CodeGen.hs
@@
-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)