Fixing OpMod emission not to trigger assert in simplifier
commit8d85957d5766221771bb1ea7517bec312748f9b2
authorEric Caruso <zircean@fb.com>
Wed, 3 Jul 2013 00:00:57 +0000 (2 17:00 -0700)
committerSara Golemon <sgolemon@fb.com>
Sat, 6 Jul 2013 18:12:16 +0000 (6 11:12 -0700)
tree63ee3037ad99b22b2fdc79f7986bf58e0cfe542e
parentdeb3366c27079666e4b4e242fe98edefaca71afd
Fixing OpMod emission not to trigger assert in simplifier

If you tried to mod something where the denominator
was cns(0), things would go horribly, horribly wrong.
hphp/runtime/vm/jit/hhbctranslator.cpp
hphp/test/quick/mod_zero.php [new file with mode: 0644]
hphp/test/quick/mod_zero.php.expectf [new file with mode: 0644]