diff --git a/CodeGen/src/AssemblyBuilderA64.cpp b/CodeGen/src/AssemblyBuilderA64.cpp index e7f50b14..a80003e9 100644 --- a/CodeGen/src/AssemblyBuilderA64.cpp +++ b/CodeGen/src/AssemblyBuilderA64.cpp @@ -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) diff --git a/CodeGen/src/IrRegAllocA64.cpp b/CodeGen/src/IrRegAllocA64.cpp index 3609c8e2..dc18ab56 100644 --- a/CodeGen/src/IrRegAllocA64.cpp +++ b/CodeGen/src/IrRegAllocA64.cpp @@ -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 oprefs)