mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed some attribute reification issues
This commit is contained in:
parent
7ff8a25307
commit
e3803ed007
4 changed files with 50 additions and 9 deletions
|
@ -3809,7 +3809,7 @@ BfIRValue CeContext::CreateConstant(BfModule* module, uint8* ptr, BfType* bfType
|
|||
|
||||
BfIRValue CeContext::CreateAttribute(BfAstNode* targetSrc, BfModule* module, BfIRConstHolder* constHolder, BfCustomAttribute* customAttribute)
|
||||
{
|
||||
module->PopulateType(customAttribute->mType);
|
||||
module->mContext->mUnreifiedModule->PopulateType(customAttribute->mType);
|
||||
auto ceAttrAddr = CeMalloc(customAttribute->mType->mSize) - mMemory.mVals;
|
||||
BfIRValue ceAttrVal = module->mBfIRBuilder->CreateConstAggCE(module->mBfIRBuilder->MapType(customAttribute->mType, BfIRPopulateType_Identity), ceAttrAddr);
|
||||
BfTypedValue ceAttrTypedValue(ceAttrVal, customAttribute->mType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue