g++ build fix

This commit is contained in:
Vyacheslav Egorov 2023-03-31 16:25:13 +03:00
parent d70df6362e
commit d071e410ce
2 changed files with 3 additions and 3 deletions

View File

@ -496,7 +496,7 @@ void AssemblyBuilderA64::fcmpz(RegisterA64 src)
{
LUAU_ASSERT(src.kind == KindA64::d);
placeFCMP("fcmp", src, {src.kind, 0}, 0b11110'01'1, 0b01);
placeFCMP("fcmp", src, RegisterA64{src.kind, 0}, 0b11110'01'1, 0b01);
}
void AssemblyBuilderA64::fcsel(RegisterA64 dst, RegisterA64 src1, RegisterA64 src2, ConditionA64 cond)

View File

@ -55,7 +55,7 @@ RegisterA64 IrRegAllocA64::allocReg(KindA64 kind)
int index = setBit(set.free);
set.free &= ~(1u << index);
return {kind, uint8_t(index)};
return RegisterA64{kind, uint8_t(index)};
}
RegisterA64 IrRegAllocA64::allocTemp(KindA64 kind)
@ -73,7 +73,7 @@ RegisterA64 IrRegAllocA64::allocTemp(KindA64 kind)
set.free &= ~(1u << index);
set.temp |= 1u << index;
return {kind, uint8_t(index)};
return RegisterA64{kind, uint8_t(index)};
}
RegisterA64 IrRegAllocA64::allocReuse(KindA64 kind, uint32_t index, std::initializer_list<IrOp> oprefs)