Skip to content

Commit

Permalink
Merge remote-tracking branch 'Upstream/master' into pr-1861
Browse files Browse the repository at this point in the history
  • Loading branch information
win7-7 committed Apr 15, 2022
2 parents 022ed72 + 9a2da30 commit 4ea9a83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/src/jit/IonBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8181,12 +8181,14 @@ IonBuilder::maybeMarkEmpty(MDefinition* ins)
// as having no possible types too. This is to avoid degrading
// subsequent analysis.
for (size_t i = 0; i < ins->numOperands(); i++) {
if (!ins->emptyResultTypeSet())
if (!ins->getOperand(i)->emptyResultTypeSet())
continue;

TemporaryTypeSet* types = alloc().lifoAlloc()->new_<TemporaryTypeSet>();
if (types)
if (types) {
ins->setResultTypeSet(types);
return;
}
}
}

Expand Down

0 comments on commit 4ea9a83

Please sign in to comment.