mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed fake alloca
This commit is contained in:
parent
76c47fde2e
commit
085bb5f26e
1 changed files with 6 additions and 5 deletions
|
@ -10131,11 +10131,12 @@ BfIRValue BfModule::AllocFromType(BfType* type, const BfAllocTarget& allocTarget
|
||||||
{
|
{
|
||||||
return GetDefaultValue(typeInstance);
|
return GetDefaultValue(typeInstance);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Fake with alloca
|
// Fake with alloca
|
||||||
return mBfIRBuilder->CreateAlloca(allocType);
|
mBfIRBuilder->PopulateType(typeInstance);
|
||||||
}
|
return mBfIRBuilder->CreateAlloca(mBfIRBuilder->MapTypeInst(typeInstance));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto classVDataType = ResolveTypeDef(mCompiler->mClassVDataTypeDef);
|
auto classVDataType = ResolveTypeDef(mCompiler->mClassVDataTypeDef);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue