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
|
@ -10134,7 +10134,8 @@ BfIRValue BfModule::AllocFromType(BfType* type, const BfAllocTarget& allocTarget
|
|||
else
|
||||
{
|
||||
// Fake with alloca
|
||||
return mBfIRBuilder->CreateAlloca(allocType);
|
||||
mBfIRBuilder->PopulateType(typeInstance);
|
||||
return mBfIRBuilder->CreateAlloca(mBfIRBuilder->MapTypeInst(typeInstance));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue