mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed byval size
This commit is contained in:
parent
91b046b6d7
commit
4f243c53a7
2 changed files with 3 additions and 6 deletions
|
@ -4752,10 +4752,7 @@ BfIRValue BfModule::CreateClassVDataGlobal(BfTypeInstance* typeInstance, int* ou
|
|||
BfIRValue(),
|
||||
classVDataName);
|
||||
|
||||
mClassVDataRefs[typeInstance] = globalVariable;
|
||||
|
||||
if (mCurTypeInstance != NULL)
|
||||
AddDependency(typeInstance, mCurTypeInstance, BfDependencyMap::DependencyFlag_StaticValue);
|
||||
mClassVDataRefs[typeInstance] = globalVariable;
|
||||
}
|
||||
return globalVariable;
|
||||
}
|
||||
|
@ -15691,7 +15688,7 @@ void BfModule::SetupIRMethod(BfMethodInstance* methodInstance, BfIRFunction func
|
|||
{
|
||||
mBfIRBuilder->PopulateType(resolvedTypeRef);
|
||||
BF_ASSERT(resolvedTypeRef->mAlign > 0);
|
||||
mBfIRBuilder->Func_AddAttribute(func, argIdx + 1, BfIRAttribute_ByVal, resolvedTypeRef->mAlign);
|
||||
mBfIRBuilder->Func_AddAttribute(func, argIdx + 1, BfIRAttribute_ByVal, mSystem->mPtrSize);
|
||||
}
|
||||
}
|
||||
else if (resolvedTypeRef->IsPrimitiveType())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue