Fix AssertionDsc::Equals OAK_NO_THROW's handling
authorMike Danes <onemihaid@hotmail.com>
Thu, 9 Mar 2017 20:04:53 +0000 (22:04 +0200)
committerMike Danes <onemihaid@hotmail.com>
Thu, 9 Mar 2017 20:04:53 +0000 (22:04 +0200)
commit12820c1c9deb3783573f02ba6a94246e7081c290
tree85c8868a7ffdf17fdf0d226992d0ba79decb75e1
parent3b36244d78c244b137205b8e81be7346600e7c81
Fix AssertionDsc::Equals OAK_NO_THROW's handling

op2 of a OAK_NO_THROW assertions is O2K_INVALID and HasSameOp2 always returns false for O2K_INVALID. As a result OAK_NO_THROW assertions always compare unequal and duplicate assertions are generated that waste space in the assertion table.

Also, HasSameOp1 only checks op1.vn but that is bogus for OAK_NO_THROW assertions, most of the time is 0.
src/jit/compiler.h