mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Use StackMarkableObject when there's appended fields
This commit is contained in:
parent
7412bb6cde
commit
119e9189e5
1 changed files with 12 additions and 0 deletions
|
@ -16226,6 +16226,18 @@ void BfExprEvaluator::CreateObject(BfObjectCreateExpression* objCreateExpr, BfAs
|
||||||
BF_ASSERT(vtableEntry.mImplementingMethod.mKind == BfMethodRefKind_AmbiguousRef);
|
BF_ASSERT(vtableEntry.mImplementingMethod.mKind == BfMethodRefKind_AmbiguousRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!needsCall)
|
||||||
|
{
|
||||||
|
for (auto& fieldInst : typeInstance->mFieldInstances)
|
||||||
|
{
|
||||||
|
if (fieldInst.IsAppendedObject())
|
||||||
|
{
|
||||||
|
needsCall = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (needsCall)
|
if (needsCall)
|
||||||
{
|
{
|
||||||
SizedArray<BfIRValue, 1> irArgs;
|
SizedArray<BfIRValue, 1> irArgs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue