mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
Issue #1864 - Fix IonBuilder::maybeMarkEmpty.
Look at the instruction's operands instead of the instruction itself, and take an early exit on empty types.
This commit is contained in:
parent
c0591cb147
commit
2aeed57657
1 changed files with 4 additions and 2 deletions
|
|
@ -8181,12 +8181,14 @@ IonBuilder::maybeMarkEmpty(MDefinition* ins)
|
||||||
// as having no possible types too. This is to avoid degrading
|
// as having no possible types too. This is to avoid degrading
|
||||||
// subsequent analysis.
|
// subsequent analysis.
|
||||||
for (size_t i = 0; i < ins->numOperands(); i++) {
|
for (size_t i = 0; i < ins->numOperands(); i++) {
|
||||||
if (!ins->emptyResultTypeSet())
|
if (!ins->getOperand(i)->emptyResultTypeSet())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
TemporaryTypeSet* types = alloc().lifoAlloc()->new_<TemporaryTypeSet>();
|
TemporaryTypeSet* types = alloc().lifoAlloc()->new_<TemporaryTypeSet>();
|
||||||
if (types)
|
if (types) {
|
||||||
ins->setResultTypeSet(types);
|
ins->setResultTypeSet(types);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue