1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fix for tuple ToString with wrappable member types

This commit is contained in:
Brian Fiete 2024-08-24 08:03:12 -04:00
parent 4bfa087cec
commit 29b2299dc2

View file

@ -18945,6 +18945,8 @@ void BfModule::EmitTupleToStringBody()
fieldValue = MakeAddressable(fieldValue);
fieldValue.mType = wrappedType;
fieldValue.mValue = mBfIRBuilder->CreateBitCast(fieldValue.mValue, mBfIRBuilder->MapTypeInstPtr(fieldValue.mType->ToTypeInstance()));
if (!wrappedType->IsValuelessType())
fieldValue.mKind = BfTypedValueKind_Addr;
}
}