No bug - Fix Ion bug exposed by followup patch for bug 913424. r=efaust on IRC

This commit is contained in:
Jan de Mooij 2013-09-11 11:22:57 +02:00
parent 799d7ffd26
commit 646c817749

View File

@ -1479,7 +1479,7 @@ IonBuilder::inlineHaveSameClass(CallInfo &callInfo)
types::StackTypeSet *arg1Types = callInfo.getArg(0)->resultTypeSet();
types::StackTypeSet *arg2Types = callInfo.getArg(1)->resultTypeSet();
Class *arg1Clasp = arg1Types ? arg1Types->getKnownClass() : NULL;
Class *arg2Clasp = arg2Types ? arg1Types->getKnownClass() : NULL;
Class *arg2Clasp = arg2Types ? arg2Types->getKnownClass() : NULL;
if (arg1Clasp && arg2Clasp) {
MConstant *constant = MConstant::New(BooleanValue(arg1Clasp == arg2Clasp));
current->add(constant);