mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed tuple ToString with pointer member
This commit is contained in:
parent
4054a67ee1
commit
5000fa9843
1 changed files with 2 additions and 3 deletions
|
@ -19188,7 +19188,6 @@ void BfModule::EmitTupleToStringBody()
|
|||
continue;
|
||||
|
||||
BfTypedValue fieldValue = ExtractValue(thisValue, &fieldInstance, fieldInstance.mDataIdx);
|
||||
|
||||
if (fieldValue.mType->IsWrappableType())
|
||||
{
|
||||
auto wrappedType = GetWrappedStructType(fieldValue.mType);
|
||||
|
@ -19198,7 +19197,7 @@ void BfModule::EmitTupleToStringBody()
|
|||
}
|
||||
else
|
||||
{
|
||||
fieldValue = MakeAddressable(fieldValue);
|
||||
fieldValue = MakeAddressable(fieldValue, false, true);
|
||||
fieldValue.mType = wrappedType;
|
||||
fieldValue.mValue = mBfIRBuilder->CreateBitCast(fieldValue.mValue, mBfIRBuilder->MapTypeInstPtr(fieldValue.mType->ToTypeInstance()));
|
||||
if (!wrappedType->IsValuelessType())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue