mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fix for tuple ToString with wrappable member types
This commit is contained in:
parent
4bfa087cec
commit
29b2299dc2
1 changed files with 2 additions and 0 deletions
|
@ -18945,6 +18945,8 @@ void BfModule::EmitTupleToStringBody()
|
||||||
fieldValue = MakeAddressable(fieldValue);
|
fieldValue = MakeAddressable(fieldValue);
|
||||||
fieldValue.mType = wrappedType;
|
fieldValue.mType = wrappedType;
|
||||||
fieldValue.mValue = mBfIRBuilder->CreateBitCast(fieldValue.mValue, mBfIRBuilder->MapTypeInstPtr(fieldValue.mType->ToTypeInstance()));
|
fieldValue.mValue = mBfIRBuilder->CreateBitCast(fieldValue.mValue, mBfIRBuilder->MapTypeInstPtr(fieldValue.mType->ToTypeInstance()));
|
||||||
|
if (!wrappedType->IsValuelessType())
|
||||||
|
fieldValue.mKind = BfTypedValueKind_Addr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue