Bug 876458 - Fix MUnbox::congruentTo, r=jandem.

This commit is contained in:
Brian Hackett 2013-05-29 13:31:35 -06:00
parent 2905deaf71
commit 9ffc2d10d8

View File

@ -1999,6 +1999,8 @@ class MUnbox : public MUnaryInstruction, public BoxInputsPolicy
return mode() != Infallible;
}
bool congruentTo(MDefinition *const &ins) const {
if (!ins->isUnbox() || ins->toUnbox()->mode() != mode())
return false;
return congruentIfOperandsEqual(ins);
}
AliasSet getAliasSet() const {