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

Fixed byval size

This commit is contained in:
Brian Fiete 2020-12-28 11:41:12 -08:00
parent 91b046b6d7
commit 4f243c53a7
2 changed files with 3 additions and 6 deletions

View file

@ -5373,7 +5373,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
}
else if ((methodInstance->WantsStructsAttribByVal()) && (!paramType->IsSizedArray()))
{
mModule->mBfIRBuilder->Call_AddAttribute(callInst, argIdx + 1, BfIRAttribute_ByVal, paramType->mAlign);
mModule->mBfIRBuilder->Call_AddAttribute(callInst, argIdx + 1, BfIRAttribute_ByVal, mModule->mSystem->mPtrSize);
}
}
}