mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
ByVal fixes
This commit is contained in:
parent
9158002a42
commit
0dc45cb712
4 changed files with 7 additions and 5 deletions
|
@ -16320,7 +16320,7 @@ void BfModule::SetupIRMethod(BfMethodInstance* methodInstance, BfIRFunction func
|
|||
PopulateType(resolvedTypeRef, BfPopulateType_Data);
|
||||
addDeref = resolvedTypeRef->mSize;
|
||||
}
|
||||
else if ((methodInstance->WantsStructsAttribByVal()) && (!resolvedTypeRef->IsSizedArray()))
|
||||
else if (methodInstance->WantsStructsAttribByVal(resolvedTypeRef))
|
||||
{
|
||||
mBfIRBuilder->PopulateType(resolvedTypeRef, BfIRPopulateType_Full);
|
||||
BF_ASSERT(resolvedTypeRef->mAlign > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue