1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed fake alloca

This commit is contained in:
Brian Fiete 2024-10-17 14:10:07 -04:00
parent 76c47fde2e
commit 085bb5f26e

View file

@ -10131,11 +10131,12 @@ BfIRValue BfModule::AllocFromType(BfType* type, const BfAllocTarget& allocTarget
{
return GetDefaultValue(typeInstance);
}
else
{
// Fake with alloca
return mBfIRBuilder->CreateAlloca(allocType);
}
else
{
// Fake with alloca
mBfIRBuilder->PopulateType(typeInstance);
return mBfIRBuilder->CreateAlloca(mBfIRBuilder->MapTypeInst(typeInstance));
}
}
auto classVDataType = ResolveTypeDef(mCompiler->mClassVDataTypeDef);