projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63bd1df
)
[jit] Throw the proper exception on integer overflow from div/rem if MONO_ARCH_NEED_D...
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 12 Mar 2015 22:19:40 +0000
(18:19 -0400)
committer
Zoltan Varga
<vargaz@gmail.com>
Thu, 12 Mar 2015 22:19:40 +0000
(18:19 -0400)
mono/mini/decompose.c
patch
|
blob
|
history
diff --git
a/mono/mini/decompose.c
b/mono/mini/decompose.c
index a11ca3c103f38c8dc651d6dcd1555cf2b1408227..25dd97da870ef5c821a31e1b0c15a3c3dc6aa438 100644
(file)
--- a/
mono/mini/decompose.c
+++ b/
mono/mini/decompose.c
@@
-466,7
+466,7
@@
mono_decompose_opcode (MonoCompile *cfg, MonoInst *ins, MonoBasicBlock **out_cbb
MONO_EMIT_NEW_UNALU (cfg, OP_ICEQ, reg2, -1);
MONO_EMIT_NEW_BIALU (cfg, OP_IAND, reg1, reg1, reg2);
MONO_EMIT_NEW_ICOMPARE_IMM (cfg, reg1, 1);
- MONO_EMIT_NEW_COND_EXC (cfg, IEQ, "
DivideByZero
Exception");
+ MONO_EMIT_NEW_COND_EXC (cfg, IEQ, "
Overflow
Exception");
}
#endif
MONO_EMIT_NEW_BIALU (cfg, ins->opcode, ins->dreg, ins->sreg1, ins->sreg2);